mirror of
https://github.com/mtan93/unifi-linux-utils.git
synced 2026-03-08 05:31:58 +00:00
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# A simple script for remotely rebooting a Ubiquiti UniFi access point
|
# A simple script for remotely rebooting a Ubiquiti UniFi access point
|
||||||
# Version 2.1 (Jan 10, 2017)
|
# Version 2.2 (Mar 26, 2018)
|
||||||
# by Steve Jenkins (http://www.stevejenkins.com/)
|
# by Steve Jenkins (http://www.stevejenkins.com/)
|
||||||
|
|
||||||
# Requires sshpass (https://sourceforge.net/projects/sshpass/) which
|
# Requires sshpass (https://sourceforge.net/projects/sshpass/) which
|
||||||
@@ -10,14 +10,14 @@
|
|||||||
# USAGE
|
# USAGE
|
||||||
# Update the user-configurable settings below, then run ./uap_reboot.sh from
|
# Update the user-configurable settings below, then run ./uap_reboot.sh from
|
||||||
# the command line. To reboot on a schedule, create a cronjob such as:
|
# the command line. To reboot on a schedule, create a cronjob such as:
|
||||||
# 45 3 * * * /usr/local/bin/uap_reboot.sh > /dev/null 2>&1 #Reboot UniFi APs
|
# 45 3 * * * /usr/local/bin/unifi-linux-utils/uap_reboot.sh > /dev/null 2>&1 #Reboot UniFi APs
|
||||||
# The above example will reboot the UniFi access point(s) every morning at 3:45 AM.
|
# The above example will reboot the UniFi access point(s) every morning at 3:45 AM.
|
||||||
|
|
||||||
# USER-CONFIGURABLE SETTINGS
|
# USER-CONFIGURABLE SETTINGS
|
||||||
username=ubnt
|
username=ubnt
|
||||||
password=ubnt
|
password=ubnt
|
||||||
known_hosts_file=/dev/null
|
known_hosts_file=/dev/null
|
||||||
uap_list=( "192.168.0.2" "192.168.0.3" )
|
uap_list=( 192.168.0.2 192.168.0.3 )
|
||||||
|
|
||||||
# SHOULDN'T NEED TO CHANGE ANYTHING PAST HERE
|
# SHOULDN'T NEED TO CHANGE ANYTHING PAST HERE
|
||||||
for i in "${uap_list[@]}"
|
for i in "${uap_list[@]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user