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:
parent
1b36ace7b7
commit
52d0db3a6c
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user