介绍9种命令方法
- 输入chmod 777 ip.sh ,然后vi ip.sh,要是不能改继续下面的步骤
- 输入sudo chmod +rwx ip.sh ,然后vi ip.sh,要是不能改继续下面的步骤
- 输入chmod 666 ip.sh,然后vi ip.sh,要是不能改继续下面的步骤
- 直接vi ip.sh ,输入i,修改一下,然后输入shift加冒号,输入下面命令
:w ! tee %
5.mount -o rw,remount /mnt
6.mount -o remount rw /
7.直接重新分区,相当于更换一个全新的,可读写的文件系统
8.修改uboot的参数bootargs 将文件系统的权限ro修改成rw就可以
9.开机启动脚本里面添加mount / -o rw;remount 重新挂载文件系统
#!/bin/sh
ifconfig eth0 down
ifconfig eth0 hw ether 00:0A:35:00:1E:51
ifconfig eth0 down
ifconfig eth0 172.27.226.243 netmask 255.255.255.0
route add default gw 172.27.226.254
ifconfig eth0 up
cp libtmControlClient.so /lib/
./exe