fixes shorewall script that is used to get the systems hostname, #3672
[openwrt/svn-archive/archive.git] / net / shorewall-common / files / hostname
index 48edcaeeb0e1b81a4853e133ac77121dab261266..1fe1e529503eced74236f67bf16ee2109163248b 100644 (file)
@@ -1,8 +1,12 @@
 #!/bin/sh
 
 . /etc/functions.sh
+hostname="OpenWrt"
+config_cb () {
+       echo a $1
+       config_get hostname "$1" hostname
+       echo b $hostname
+}
 config_load "system"
-local section="cfg1"
-config_get "hostname"  "$section" "hostname"
 
 echo "$hostname"