#!/bin/bash set -e # delete init files created from template pushd /etc/init.d >/dev/null for file in $(ls) do if grep "# sysd2sysv-template #" $file then rm $file fi # for downward compatibility if [ -f mlistd ] then rm mlistd fi done