From d8a0552bb6f7d41bf40732776b67a7d4412291e7 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 03 Jun 2014 11:57:56 -0400 Subject: busybox.pkg/postinst: Do scripts after net ifaces. --- diff --git a/busybox.pkg/postinst b/busybox.pkg/postinst index 0b44e2c..fa5e152 100755 --- a/busybox.pkg/postinst +++ b/busybox.pkg/postinst @@ -5,6 +5,16 @@ if [ "x${1}" = 'xconfigure' ]; then update-alternatives --install "${link}" "${name}" \ "${link}.busybox" "${prio}" done /etc/network/interfaces + printf 'auto lo\niface lo inet loopback\n\n' >&3 + for iface in /sys/class/net/eth*; do + iface="${iface##*/}" + printf 'auto %s\niface %s inet dhcp\n\n' \ + "${iface}" "${iface}" >&3 + done + exec 3>&- + fi if ! [ -f /etc/rc.policy ]; then if [ "x$(cat /etc/proteanos_plat)" = 'xdev' ]; then printf 'disabled\n' >/etc/rc.policy @@ -20,14 +30,4 @@ if [ "x${1}" = 'xconfigure' ]; then "/etc/init.d/${script}" start done fi - if [ -d /etc/network ] && ! [ -f /etc/network/interfaces ]; then - exec 3>/etc/network/interfaces - printf 'auto lo\niface lo inet loopback\n\n' >&3 - for iface in /sys/class/net/eth*; do - iface="${iface##*/}" - printf 'auto %s\niface %s inet dhcp\n\n' \ - "${iface}" "${iface}" >&3 - done - exec 3>&- - fi fi -- cgit v0.9.1