#!/bin/sh # Ensure opkg saved a copy of busybox and its links. Otherwise, opkg could # remove busybox, try to use gzip, crash, and leave behind a broken system. if [ x"${OPKG_BUSYBOX_SAVED+set}" != x'set' ]; then exit 1 fi if [ "x${1}" = 'xupgrade' ]; then if [ -f /usr/share/busybox/init-scripts ]; then while read -r script enabled; do "/etc/init.d/${script}" stop done