Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求助大佬们,怎样修改默认登录IP地址? #234

Open
ywyha opened this issue Dec 30, 2020 · 3 comments
Open

求助大佬们,怎样修改默认登录IP地址? #234

ywyha opened this issue Dec 30, 2020 · 3 comments

Comments

@ywyha
Copy link

ywyha commented Dec 30, 2020

默认地址是192.168.2.1,怎样改成别的

@peacechu
Copy link

peacechu commented Jan 1, 2021

for example IP : 10.0.0.1
sed 's/192.168.2/10.0.0/g' -i trunk/user/shared/defaults.h

@ywyha
Copy link
Author

ywyha commented Jan 3, 2021

for example IP : 10.0.0.1
sed 's/192.168.2/10.0.0/g' -i trunk/user/shared/defaults.h

谢谢,麻烦问下这个示例是在哪个页面看到的,我怎么没找到……(太小白了)

@e71828
Copy link

e71828 commented Feb 18, 2021

说的是这 @ywyha
https://github.com/hanwckf/rt-n56u/blob/597083b2972c2f79117692a767fa14e2385ec717/trunk/user/shared/defaults.h#L33

工作流中克隆代码之后

run: |
cd /opt/rt-n56u/trunk
if [ ! -f configs/templates/$TNAME.config ] ; then
echo "configs/templates/$TNAME.config not found "
exit 1
fi
cp -f configs/templates/$TNAME.config .config

在第47行后新建一行

sed 's/192.168.2/10.0.0/g' -i user/shared/defaults.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants