35 lines
581 B
Bash
Executable File
35 lines
581 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
case $1 in
|
|
preinst)
|
|
exit 0
|
|
;;
|
|
postinst)
|
|
update-rc required
|
|
|
|
if [ ! -f /etc/fstab ]; then
|
|
cp /usr/share/initscripts/fstab /etc/fstab
|
|
fi
|
|
|
|
if [ ! -f /etc/modules.conf ]; then
|
|
cp /usr/share/initscripts/modules.conf /etc/modules.conf
|
|
fi
|
|
|
|
if [ ! -f /etc/default/halt ]; then
|
|
cp /usr/share/initscripts/halt.default /etc/default/halt
|
|
fi
|
|
|
|
if [ ! -f /etc/default/rcS ]; then
|
|
cp /usr/share/initscripts/rcS.default /etc/default/rcS
|
|
fi
|
|
;;
|
|
prerm)
|
|
exit 0
|
|
;;
|
|
postrm)
|
|
exit 0
|
|
;;
|
|
esac
|