diff --git a/openwrt-add-gps.sh b/openwrt-add-gps.sh old mode 100644 new mode 100755 diff --git a/openwrt-add-temper.sh b/openwrt-add-temper.sh old mode 100644 new mode 100755 diff --git a/openwrt-hp-250-g5-add-wifi.sh b/openwrt-hp-250-g5-add-wifi.sh new file mode 100755 index 0000000..adb58fb --- /dev/null +++ b/openwrt-hp-250-g5-add-wifi.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +if [ $# -lt 1 ]; then + echo "$0 ip-address" + echo " ip-address: where to find the device" + exit 1 +fi + + +openwrt_ip=$1; shift + +ping -c3 ${openwrt_ip} +if [ $? -ne 0 ]; then + echo "Cannot reach ${openwrt_ip}, aborting" + exit 1 +fi + +cat <