# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
-# Latest change: Mit Okt 11 23:00:43 CEST 2006 [moemoe]
################################################################################
# exit on any error
. /etc/grml/net-functions
. /etc/grml/script-functions
-check4root
+check4root || exit 1
-if ! [ -r "$CONFIG_FILE" ] ; then
- eerror "$CONFIG_FILE could not be read."
- exit 1
+if [ -r "$CONFIG_FILE" ] ; then
+ . "$CONFIG_FILE"
+else
+ ewarn "Could not read $CONFIG_FILE"
fi
-. "$CONFIG_FILE"
-
+# defaults if unconfigured
[ -n "$AP_ESSID" ] || AP_ESSID=grml-ap
[ -n "$AP_ENC" ] || AP_ENC=off