[packages] coova-chilli: support mac password function in config script again (#6630)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@19508 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow
2010-02-03 22:07:50 +00:00
parent 0f7020b9dd
commit 40039db602
2 changed files with 14 additions and 4 deletions

View File

@ -0,0 +1,10 @@
--- a/conf/functions.in
+++ b/conf/functions.in
@@ -153,6 +153,7 @@
if [ "x$HS_RADCONF" != "xon" -a "x$HS_RADCONF" != "xurl" ]; then
[ "$HS_PAP_OK" = "on" ] && addconfig2 "papalwaysok"
[ "$HS_MACAUTH" = "on" ] && addconfig2 "macauth"
+ [ "$HS_MACAUTH" = "on" -a -n "$HS_MACPASSWD" ] && addconfig2 "macpasswd $HS_MACPASSWD"
[ "$HS_MACREAUTH" = "on" ] && addconfig2 "macreauth"
[ "$HS_MACAUTHDENY" = "on" ] && addconfig2 "macauthdeny"
[ "$HS_WPAGUESTS" = "on" ] && addconfig2 "wpaguests"