summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-03 11:57:56 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-03 11:57:56 (EDT)
commitd8a0552bb6f7d41bf40732776b67a7d4412291e7 (patch)
tree28804251b6800032c58995e71995a68878d3fe2b
parent344ee18a3dc91458b892d6a49ad426ae0309e68a (diff)
busybox.pkg/postinst: Do scripts after net ifaces.
-rwxr-xr-xbusybox.pkg/postinst20
1 files changed, 10 insertions, 10 deletions
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 </usr/share/busybox/alternatives
+ 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
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