From 5945e87f0f031602a6fb5eed3937401a01e6e90e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 4 Nov 2020 14:36:05 +0100 Subject: [PATCH] [openwrt] add script to enable wifi on hp notebooks --- openwrt-add-gps.sh | 0 openwrt-add-temper.sh | 0 openwrt-hp-250-g5-add-wifi.sh | 21 +++++++++++++++++++++ 3 files changed, 21 insertions(+) mode change 100644 => 100755 openwrt-add-gps.sh mode change 100644 => 100755 openwrt-add-temper.sh create mode 100755 openwrt-hp-250-g5-add-wifi.sh 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 <