#!/bin/sh if [ "x${1}" = 'xupgrade' ]; then if [ -e /usr/share/busybox/init-scripts ]; then while read script; do "/etc/init.d/${script}" stop done