Make flavour script a real new style rc script

This commit is contained in:
erdgeist 2012-01-07 04:48:23 +00:00
parent 05326abfee
commit 1e39cfd7ba

View File

@ -5,25 +5,18 @@
#
# ezjail flavour example
#
case "$1" in
*start)
. /etc/rc.subr
# Remove traces of ourself
##########################
rm -f "/etc/rc.d/ezjail.flavour.example"
# Run the main setup routines
#############################
flavour_setup()
;;
*)
;;
esac
name=ezjail.flavour.example
start_cmd=flavour_setup
flavour_setup() {
# Remove traces of ourself
# N.B.: Do NOT rm $0, it points to /etc/rc
##########################
rm -f "/etc/rc.d/ezjail.flavour.example"
# Groups
#########
#
@ -78,3 +71,5 @@ rm -rf /pkg
# cd /usr/ports/sysutils/screen && make install
}
run_rc_command "$1"