fixes shorewall script that is used to get the systems hostname, #3672
authorJohn Crispin <john@openwrt.org>
Wed, 30 Jul 2008 16:46:17 +0000 (16:46 +0000)
committerJohn Crispin <john@openwrt.org>
Wed, 30 Jul 2008 16:46:17 +0000 (16:46 +0000)
SVN-Revision: 12015

net/shorewall-common/files/hostname

index 48edcae..1fe1e52 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"