[package] wview: new package, automated weather station software
This is runtime tested on a MIPS-based DIR-620 with a simulator station. Signed-off-by: Paul Fertser <fercerpav@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/packages@33083 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
20
utils/wview/patches/020-use-standard-awk.patch
Normal file
20
utils/wview/patches/020-use-standard-awk.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- a/wviewconfig/wviewconfig.sh
|
||||
+++ b/wviewconfig/wviewconfig.sh
|
||||
@@ -206,7 +206,7 @@ get_wview_conf_interactive()
|
||||
cd $WVIEW_CONF_DIR
|
||||
|
||||
# Edit parms one at a time:
|
||||
- gawk -F"|" '{
|
||||
+ awk -F"|" '{
|
||||
sysstring=sprintf("./editparm \"%s\" \"%s\" \"%s\" \"%s\"", $1, $2, $3, $4)
|
||||
system(sysstring)
|
||||
}' $WVIEW_CONF_DIR/parms.out
|
||||
@@ -234,7 +234,7 @@ set_config_from_file()
|
||||
cd $WVIEW_CONF_DIR
|
||||
|
||||
# Update parms one at a time:
|
||||
- gawk -F"=" '{
|
||||
+ awk -F"=" '{
|
||||
sysstring=sprintf("./updateparm \"%s\" \"%s\"", $1, $2)
|
||||
system(sysstring)
|
||||
}' $SET_FILE
|
Reference in New Issue
Block a user