X-Git-Url: http://git.grml.org/?p=grml-network.git;a=blobdiff_plain;f=sbin%2Fgrml-ap;h=3c0b6d9d247593b64cde494fac3db06e50044924;hp=1fc24b1ce3f2c51000f2161102171821bb9956d7;hb=af7e79258099000fb08013a77e1e83680ca4a59f;hpb=4dd28e782446cb5101be9cb1ce5eb3d4df4003e3 diff --git a/sbin/grml-ap b/sbin/grml-ap index 1fc24b1..3c0b6d9 100755 --- a/sbin/grml-ap +++ b/sbin/grml-ap @@ -16,13 +16,13 @@ CONFIG_FILE=/etc/grml/routersetup 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