1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Updated install script with new sudoers lines required. Updated uninstall script to resolve lighttpd directory contents not being removed

Updated dashboard.php file to remove IP addresses when taking wlan0 down.
This commit is contained in:
Lawrence 2017-10-04 01:28:57 +08:00
parent 0be196d708
commit 1fc0615452
3 changed files with 3 additions and 1 deletions

View File

@ -68,6 +68,7 @@ function DisplayDashboard(){
exec( 'ifconfig wlan0 | grep -i running | wc -l',$test );
if($test[0] == 0) {
exec( 'sudo ip link set wlan0 up',$return );
exec( 'sudo ip -s a f label wlan0',$return);
} else {
echo 'Interface already up';
}

View File

@ -185,6 +185,7 @@ function patch_system_files() {
'/sbin/reboot'
'/sbin/ip link set wlan0 down'
'/sbin/ip link set wlan0 up'
'/sbin/ip -s a f label wlan0'
)
# Check if sudoers needs patchin

View File

@ -81,7 +81,7 @@ function remove_raspap_directories() {
install_error "RaspAP Installation directory not found. Exiting!"
fi
sudo rm -rf "$webroot_dir/*"
sudo rm -rf "$webroot_dir"/*
sudo rm -rf "$raspap_dir"
}