[openwrt] add script to enable wifi on hp notebooks
This commit is contained in:
parent
c532e62ffe
commit
5945e87f0f
3 changed files with 21 additions and 0 deletions
0
openwrt-add-gps.sh
Normal file → Executable file
0
openwrt-add-gps.sh
Normal file → Executable file
0
openwrt-add-temper.sh
Normal file → Executable file
0
openwrt-add-temper.sh
Normal file → Executable file
21
openwrt-hp-250-g5-add-wifi.sh
Executable file
21
openwrt-hp-250-g5-add-wifi.sh
Executable file
|
@ -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 <<EOF | ssh -t "root@${openwrt_ip}"
|
||||
opkg update
|
||||
opkg install kmod-iwlwifi iwlwifi-firmware-iwl7265d
|
||||
EOF
|
Loading…
Reference in a new issue