summaryrefslogtreecommitdiff
path: root/skel/runlevel
diff options
context:
space:
mode:
Diffstat (limited to 'skel/runlevel')
-rwxr-xr-xskel/runlevel3
1 files changed, 3 insertions, 0 deletions
diff --git a/skel/runlevel b/skel/runlevel
index 51789f3..8ca2fd1 100755
--- a/skel/runlevel
+++ b/skel/runlevel
@@ -5,6 +5,9 @@
### requests a machine state change via telinit.
### Ideally, it should just be a call to the service manager.
+test "$#" -gt 0 || { echo 'runlevel: fatal: too few arguments' 1>&2 ; exit 100 ; }
+
+
### If your services are managed by sysv-rc:
# exec /etc/init.d/rc "$1"