442c70fb62b6170e2cd4d6154f4302db1e66c6aa
[projects.git] / debian / sysd2sysv.postinst
1 #!/bin/bash
2 set -e
3
4 # delete init files created from template
5 pushd /etc/init.d >/dev/null
6 for file in $(ls)
7 do
8         if grep "# sysd2sysv-template #" $file
9         then
10                 rm $file
11         fi
12         # for downward compatibility
13         if [ -f mlistd ]
14         then
15                 rm mlistd
16         fi
17 done
18