summaryrefslogtreecommitdiff
path: root/skel/runlevel
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-05-20 13:30:47 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-05-20 13:30:47 +0000
commitaf21e602b1dad1b7fd2c00f570d1d5605b9bb277 (patch)
tree7242f87f8cdb66dbe1912fcf48d18b5af787e43a /skel/runlevel
parentbcd0758e17995c98662cbcaf15eaa62d1fcc8356 (diff)
downloads6-linux-init-af21e602b1dad1b7fd2c00f570d1d5605b9bb277.tar.xz
Improve UX following IRC feedback, prepare for 1.0.1.0
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"