the interface of the KaosCube
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.
 
 

19 lines
445 B

<?php
$rootPW = $_POST["rootPW"];
$pwNewKc = $_POST["pwNewKc"];
$shellcommand = "echo $rootPW | sudo -S nmcli con modify kaoscube 802-11-wireless-security.psk $pwNewKc";
$commandAPdown = "echo $rootPW | sudo -S nmcli con down kaoscube";
$commandAPup = "echo $rootPW | sudo -S nmcli con up kaoscube";
$output = exec($shellcommand);
$output2 = exec($commandAPdown);
$output3 = exec($commandAPup);
echo _($output3);
echo _(" oi oi oi ");
?>