projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a540125
)
fixes shorewall script that is used to get the systems hostname, #3672
author
John Crispin
<john@openwrt.org>
Wed, 30 Jul 2008 16:46:17 +0000
(16:46 +0000)
committer
John Crispin
<john@openwrt.org>
Wed, 30 Jul 2008 16:46:17 +0000
(16:46 +0000)
SVN-Revision: 12015
net/shorewall-common/files/hostname
patch
|
blob
|
history
diff --git
a/net/shorewall-common/files/hostname
b/net/shorewall-common/files/hostname
index 48edcaeeb0e1b81a4853e133ac77121dab261266..1fe1e529503eced74236f67bf16ee2109163248b 100644
(file)
--- a/
net/shorewall-common/files/hostname
+++ b/
net/shorewall-common/files/hostname
@@
-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"