Installer/Updater
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
673 B

<?php
require_once( '/srv/scripts/sys_utils.php' );
if( validate_samba_config() ) {
echo "SAMBA config is OK\n";
} else {
echo "SAMBA config is invalid!\n";
};
//$A = get_nif_config( 'eth0' );
//$A = get_network_config();
//print_r( $A );
//build_network_config( $A, 'test.config' );
//echo get_NetBroadcast( '192.168.200.201', '255.255.255.120' ) . "\n\n";
//echo get_NetGateway( '192.168.200.201', '255.255.255.120' ) . "\n\n";
//$AA = get_wifi_ap_configuration();
//$AA = get_network_config();
//echo `sudo ifconfig wlan0 up`;
//echo `sudo pwd`;
$AA = list_AP_NEARBY( 'wlan0' );
print_r( $AA );
?>