summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexamples/example/etc/rc.d/ezjail.flavour.example23
1 files changed, 9 insertions, 14 deletions
diff --git a/examples/example/etc/rc.d/ezjail.flavour.example b/examples/example/etc/rc.d/ezjail.flavour.example
index 4da6ffa..de09abb 100755
--- a/examples/example/etc/rc.d/ezjail.flavour.example
+++ b/examples/example/etc/rc.d/ezjail.flavour.example
@@ -5,25 +5,18 @@
5# 5#
6# ezjail flavour example 6# ezjail flavour example
7 7
8# 8. /etc/rc.subr
9case "$1" in 9
10 *start) 10name=ezjail.flavour.example
11start_cmd=flavour_setup
12
13flavour_setup() {
11 14
12# Remove traces of ourself 15# Remove traces of ourself
16# N.B.: Do NOT rm $0, it points to /etc/rc
13########################## 17##########################
14 rm -f "/etc/rc.d/ezjail.flavour.example" 18 rm -f "/etc/rc.d/ezjail.flavour.example"
15 19
16# Run the main setup routines
17#############################
18 flavour_setup()
19
20 ;;
21 *)
22 ;;
23esac
24
25flavour_setup() {
26
27# Groups 20# Groups
28######### 21#########
29# 22#
@@ -78,3 +71,5 @@ rm -rf /pkg
78# cd /usr/ports/sysutils/screen && make install 71# cd /usr/ports/sysutils/screen && make install
79 72
80} 73}
74
75run_rc_command "$1"