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.
 
 

14 lines
266 B

<?php
$name = $_POST["name"];
$password = $_POST["password"];
$rootPW = $_POST["rootPW"];
$shellcommand = "echo $rootPW | sudo -S nmcli dev wifi connect $name password $password ifname wlx00e0318cea7d";
$output = shell_exec($shellcommand);
echo _($output);
?>