diff options
author | Jonas Smedegaard <dr@jones.dk> | 2002-03-30 02:54:53 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2002-03-30 02:54:53 +0000 |
commit | ee3fbfe619b4f8a43f7370fc048e2d95943c0188 (patch) | |
tree | 71d947b7b34603730e4053713b22c0e6b54dd4ec /user-init | |
parent | f4de52b09e022466e255a1edf75d6a765334ba40 (diff) |
Ask about access to local devices in adduser.local, and exit user-init cleanly if unsupported.
Diffstat (limited to 'user-init')
-rwxr-xr-x | user-init | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -9,11 +9,22 @@ mac=".mac" pc=".pc" xchange=".xchange" -. /etc/adduser.conf || exit 1 +if [ -e /etc/adduser.conf ]; then + . /etc/adduser.conf +else + echo "/etc/adduser.conf missing. Exiting..." + exit 1 +fi [ -f /etc/local/users.conf ] && . /etc/local/users.conf -. /etc/local/volumes || exit 0 +if [ -e /etc/local/volumes ]; then + . /etc/local/volumes +else + # exit silently if this system lacks required hints + exit 0 +fi + XDIRREAL="$XDIR/users/root" if [ $XCHANGE ]; then |