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

Updating version numbers, uninstall script

This commit is contained in:
Lawrence 2017-10-04 01:37:39 +08:00
commit 04acb817b4
3 changed files with 3 additions and 2 deletions

View File

@ -151,7 +151,7 @@ function DisplayWPAConfig(){
<p><?php $status->showMessages(); ?></p> <p><?php $status->showMessages(); ?></p>
<h4>Client settings</h4> <h4>Client settings</h4>
<div class="btn-group btn-block"> <div class="btn-group btn-block">
<a href=".?<?php echo $_SERVER['QUERY_STRING']; ?>" style="padding:10px;float: right;display: block;position: relative;margin-top: -55px;" class="col-md-6-btn btn-info" id="update">Rescan</a> <a href=".?<?php echo $_SERVER['QUERY_STRING']; ?>" style="padding:10px;float: right;display: block;position: relative;margin-top: -55px;" class="col-md-2 btn btn-info" id="update">Rescan</a>
</div> </div>
<form method="POST" action="?page=wpa_conf" name="wpa_conf_form"> <form method="POST" action="?page=wpa_conf" name="wpa_conf_form">
<?php CSRFToken() ?> <?php CSRFToken() ?>

View File

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

View File

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