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 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"