Changes for page Openwrt Notes

Last modified by Leon Poon on 2019/11/02 17:53

From version 13.1
edited by Leon Poon
on 2019/01/06 09:50
Change comment: There is no comment for this version
To version 17.1
edited by Leon Poon
on 2019/01/06 13:18
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -47,7 +47,9 @@
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
50 +* apt-get install net-tools file ntp openssh-server gcc
51 +** net-tools for ifconfig
52 +** gcc for?
51 51  * read-only root
52 52  
53 53  Needs CONFIG_DEVTMPFS=y in kernel.
... ... @@ -73,3 +73,12 @@
73 73  ip link set eth0 up
74 74  ip route add default via GW
75 75  {{/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}}