From dce704df35a708e4d2afffbe9f8ca59b00d8605b Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Sun, 21 Jul 2024 15:48:56 +0200 Subject: user-init.sh: print message on error Signed-off-by: Anna (navi) Figueiredo Gomes --- sh/user-init.sh.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sh/user-init.sh.in b/sh/user-init.sh.in index eaedc631..a438be55 100644 --- a/sh/user-init.sh.in +++ b/sh/user-init.sh.in @@ -1,5 +1,7 @@ #!@SHELL@ +. @LIBEXECDIR@/sh/functions.sh + sourcex() { if [ "$1" = "-e" ]; then @@ -20,7 +22,7 @@ sourcex -e "$_sysconf/rc.conf" case $1 in start) _runlevel="${rc_user_runlevel:-default}";; stop) _runlevel="${rc_user_shutdown_runlevel:-none}";; - *) exit 1 + *) eerror "no argument given to $0"r exit 1 esac mkdir -p "$_sysconf/runlevels/$_runlevel" -- cgit v1.2.3