projects
/
grml-network.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use consistent indentation also for wireless configuration
[grml-network.git]
/
sbin
/
grml-ap
diff --git
a/sbin/grml-ap
b/sbin/grml-ap
index
a6c4f62
..
3c0b6d9
100755
(executable)
--- a/
sbin/grml-ap
+++ b/
sbin/grml-ap
@@
-14,15
+14,15
@@
CONFIG_FILE=/etc/grml/routersetup
. /etc/grml/net-functions
. /etc/grml/script-functions
. /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
fi
-. "$CONFIG_FILE"
-
+# defaults if unconfigured
[ -n "$AP_ESSID" ] || AP_ESSID=grml-ap
[ -n "$AP_ENC" ] || AP_ENC=off
[ -n "$AP_ESSID" ] || AP_ESSID=grml-ap
[ -n "$AP_ENC" ] || AP_ENC=off