X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=sbin%2Fgrml-ap;h=3c0b6d9d247593b64cde494fac3db06e50044924;hb=e982bd7cede6f32bb2e15a06338250fdfdab39b8;hp=4b1b51ecee454591a2952220f813f3ee07ce2349;hpb=a83e3825511532c96dd400447f2e0cc5e89600dd;p=grml-network.git diff --git a/sbin/grml-ap b/sbin/grml-ap index 4b1b51e..3c0b6d9 100755 --- a/sbin/grml-ap +++ b/sbin/grml-ap @@ -4,7 +4,6 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # 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 @@ -15,15 +14,15 @@ CONFIG_FILE=/etc/grml/routersetup . /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