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:
parent
0be196d708
commit
1fc0615452
@ -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';
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user