Make flavour script a real new style rc script
This commit is contained in:
parent
05326abfee
commit
1e39cfd7ba
@ -5,25 +5,18 @@
|
|||||||
#
|
#
|
||||||
# ezjail flavour example
|
# ezjail flavour example
|
||||||
|
|
||||||
#
|
. /etc/rc.subr
|
||||||
case "$1" in
|
|
||||||
*start)
|
|
||||||
|
|
||||||
# Remove traces of ourself
|
name=ezjail.flavour.example
|
||||||
##########################
|
start_cmd=flavour_setup
|
||||||
rm -f "/etc/rc.d/ezjail.flavour.example"
|
|
||||||
|
|
||||||
# Run the main setup routines
|
|
||||||
#############################
|
|
||||||
flavour_setup()
|
|
||||||
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
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
|
# Groups
|
||||||
#########
|
#########
|
||||||
#
|
#
|
||||||
@ -78,3 +71,5 @@ rm -rf /pkg
|
|||||||
# cd /usr/ports/sysutils/screen && make install
|
# cd /usr/ports/sysutils/screen && make install
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run_rc_command "$1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user