#!/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 while read -r script enabled; do if [ "x${enabled}" = 'xenabled' ]; then [ "x${2:+set}" != 'xset' ] && \ "/etc/init.d/${script}" enable "/etc/init.d/${script}" start fi done