ifdown
eth0 ifup eth0 |
ssh root@192.168.1.1 |
vi /etc/config/firewall |
config
rule option src wan option dest_port 22 option target ACCEPT option proto tcp config rule option src wan option dest_port 80 option target ACCEPT option proto tcp |
/etc/init.d/firewall stop /etc/init.d/firewall start |
ssh root@192.168.178.42 |
vi /etc/banner |
opkg
update opkg install kmod-usb-storage opkg install kmod-fs-ext4 block-mount |
mkdir
-p /mnt/sda1 mount /dev/sda1 /mnt/sda1 mkdir -p /tmp/cproot mount --bind / /tmp/cproot tar -C /tmp/cproot -cvf - . | tar -C /mnt/sda1 -xf - umount /tmp/cproot umount /mnt/sda1 |
vi /etc/config/fstab |
option target /home option enabled 0 |
option target / option enabled 1 |
reboot |