Commit bd83dbfe authored by sokai's avatar sokai

uci command for firmware is not working on firmware <0.1.0 (kathleen), so we...

uci command for firmware is not working on firmware <0.1.0 (kathleen), so we have to go back to cat and /etc/openwrt_version :-/
parent e72f2ae9
......@@ -36,7 +36,8 @@ LOCATION=$(uci show system|grep -i location|cut -d '=' -f2|sed 's/ /%20/g')
CONTACT=$(grep 'mail' /etc/config/freifunk|awk '{$1=$2="";print}'|sed 's/ /%20/g'|sed 's/#/%23/g')
#CONTACT=$(uci show |grep -i 'freifunk.contact.mail' |cut -d '=' -f2|sed 's/ /%20/g')
UPTIME=$(cat /proc/uptime|cut -d ' ' -f2|sed 's/ /%20/g')
FIRMWARE=$(uci show system|grep -i version|cut -d '=' -f2|sed 's/ /%20/g')
FIRMWARE=$(cat /etc/openwrt_version|sed 's/ /%20/g')
#FIRMWARE=$(uci show system|grep -i version|cut -d '=' -f2|sed 's/ /%20/g')
MACHINE=$(grep 'machine' /proc/cpuinfo|awk '{$1=$2=""; print}'| sed 's/\ \ //'|sed 's/ /%20/g')
SYSTEMTYPE=$(grep 'system type' /proc/cpuinfo|awk '{$1=$2=""; print}'| sed 's/ : //'|sed 's/ /%20/g')
#CLIENTS=$(iw dev ${WIF} station dump|grep -c Station)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment