summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2012-01-07 04:48:23 +0000
committererdgeist <erdgeist@erdgeist.org>2012-01-07 04:48:23 +0000
commit1e39cfd7ba2bccc675a87fe646b9dea2b41cb2f0 (patch)
tree1ecaef4cd007abd01d4e9cb21f9ac7473f4c3ebc
parent05326abfee252f128629d440246d4c8cb29a70d7 (diff)
Make flavour script a real new style rc script
-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"