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.

26 lines
673 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. require_once( '/srv/scripts/sys_utils.php' );
  3. if( validate_samba_config() ) {
  4. echo "SAMBA config is OK\n";
  5. } else {
  6. echo "SAMBA config is invalid!\n";
  7. };
  8. //$A = get_nif_config( 'eth0' );
  9. //$A = get_network_config();
  10. //print_r( $A );
  11. //build_network_config( $A, 'test.config' );
  12. //echo get_NetBroadcast( '192.168.200.201', '255.255.255.120' ) . "\n\n";
  13. //echo get_NetGateway( '192.168.200.201', '255.255.255.120' ) . "\n\n";
  14. //$AA = get_wifi_ap_configuration();
  15. //$AA = get_network_config();
  16. //echo `sudo ifconfig wlan0 up`;
  17. //echo `sudo pwd`;
  18. $AA = list_AP_NEARBY( 'wlan0' );
  19. print_r( $AA );
  20. ?>