24 lines
319 B
Bash
Executable File
24 lines
319 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
case $1 in
|
|
preinst)
|
|
exit 0
|
|
;;
|
|
postinst)
|
|
install -d -m 755 /etc/init.d
|
|
install -d -m 755 /etc/rc{{0..6},S}.d
|
|
|
|
if [ ! -f /etc/inittab ]; then
|
|
install -m 644 /usr/share/sysvinit/inittab /etc/inittab
|
|
fi
|
|
;;
|
|
prerm)
|
|
exit 0
|
|
;;
|
|
postrm)
|
|
exit 0
|
|
;;
|
|
esac
|