Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 36 lines (29 sloc) 558 Bytes
#!/bin/bash
USER=user
PASS=pass
do_start() {
while true ; do
C=$(curl -I google.com 2>/dev/null | grep google.com)
[ -z "$C" ] &&
(
curl -k "http://securelogin.arubanetworks.com/cgi-bin/login" \
-d "user=$USER&fqdn=insa-lyon.fr&password=$PASS" 2&>/dev/null
)
sleep 10
done &
}
do_stop() {
killall autoconnect
}
case "$1" in
start|restart|reload)
do_start
;;
stop)
do_stop
;;
*)
echo "Script only started at boot for system configuration."
;;
esac
exit 0
Something went wrong with that request. Please try again.