Changes for page Openwrt Notes
Last modified by Leon Poon on 2019/11/02 17:53
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -47,7 +47,8 @@ 47 47 * set hostname 48 48 * set root password 49 49 * /etc/network/interfaces (TODO: swconfig while still in openwrt initramfs space?) 50 -* apt-get install file ntp openssh-server gcc 50 +* apt-get install net-tools file ntp openssh-server gcc 51 +** net-tools for ifconfig 51 51 ** gcc for? 52 52 * read-only root 53 53 ... ... @@ -74,3 +74,12 @@ 74 74 ip link set eth0 up 75 75 ip route add default via GW 76 76 {{/code}} 78 + 79 += Network = 80 + 81 +{{code language="bash"}} 82 +sed -re 's/^boot_run_hook/#\0/g' -i /etc/preinit 83 +PREINIT=1 . /etc/preinit 84 +pi_ifname=eth0.1 preinit_ip 85 +pi_ifname=eth0.2 preinit_ip 86 +{{/code}}