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