fixes shorewall script that is used to get the systems hostname, #3672

git-svn-id: svn://svn.openwrt.org/openwrt/packages@12015 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
blogic 2008-07-30 16:46:17 +00:00
parent 1b36ace7b7
commit 52d0db3a6c

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