ungleich-tools/viirb1-2-together.sh

15 lines
314 B
Bash
Raw Normal View History

#!/bin/sh
2020-08-01 11:46:00 +00:00
if [ $# -ne 1 ]; then
echo "$0 viirb-id"
echo " viirb-id: number in decimal format"
exit 1
fi
id=$1; shift
./viirb-1-connect-flash-latest-openwrt.sh eth0 192.168.61.1
2020-08-01 12:00:49 +00:00
# reboot may take longer / rewriting the flash
sleep 120
2020-08-01 11:42:51 +00:00
./viirb-2-configure-fully-after-upgrade.sh 192.168.61.1 "$id"