diff options
Diffstat (limited to 'init-sh/level2.sh')
-rwxr-xr-x | init-sh/level2.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/init-sh/level2.sh b/init-sh/level2.sh index d387b13..ea5174f 100755 --- a/init-sh/level2.sh +++ b/init-sh/level2.sh @@ -5,7 +5,7 @@ # Writen by Vandoorselaere Yoann <yoann@mandrakesoft.com> # -if [ -f /etc/security/msec/init-sh/lib.sh ]; then +if [[ -f /etc/security/msec/init-sh/lib.sh ]]; then . /etc/security/msec/init-sh/lib.sh else exit 1 @@ -71,8 +71,11 @@ AddRules "/usr/X11R6/bin/xhost + localhost" /etc/X11/xdm/Xsession quiet AddRules "/usr/X11R6/bin/xhost + localhost" /etc/X11/xinit/xinitrc # Group -echo -n "Adding \"${DRAKX_USERS}\" to audio group :" -for user in ${DRAKX_USERS}; do - usermod -G audio "${user}" -done -echo "done." +if [[ ! -z ${DRAKX_USERS} ]]; then + echo -n "Adding \"${DRAKX_USERS}\" to audio group :" + for user in ${DRAKX_USERS}; do + usermod -G audio "${user}" + done + echo "done." +fi + |