#!/bin/sh 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