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

1 year ago
  1. <?php
  2. $name = $_POST["name"];
  3. $password = $_POST["password"];
  4. $rootPW = $_POST["rootPW"];
  5. $shellcommand = "echo $rootPW | sudo -S nmcli dev wifi connect $name password $password ifname wlx00e0318cea7d";
  6. $output = shell_exec($shellcommand);
  7. echo _($output);
  8. ?>