#!/bin/sh if [ "x${1}" = 'xconfigure' ]; then while read link name prio; do update-alternatives --install "${link}" "${name}" \ "${link}.busybox" "${prio}" done /etc/rc.policy else printf 'enabled\n' >/etc/rc.policy fi fi if [ -f /usr/share/busybox/init-scripts ]; then for script in $(cat /usr/share/busybox/init-scripts); do if [ "x${2:+set}" != 'xset' ]; then "/etc/init.d/${script}" enable fi "/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