Skip to content
Permalink
Browse files

Output some warning

  • Loading branch information...
NEMS Linux
NEMS Linux committed Mar 19, 2019
1 parent 50ef292 commit f0e3d476c5c01c054292f282832ff1683f5446b3
Showing with 6 additions and 0 deletions.
  1. +6 −0 reset-network-manager.sh
@@ -1,5 +1,10 @@
#!/usr/bin/php
<?php
echo "Clearing NetworkManager config"
echo ""
echo "Your connection will be reset."
echo "If you lose connection, check"
echo "your DHCP lease to reconnect."
# Find out which network interfaces are configured
$uuid = array();
$conf = preg_split('/\n+/', trim(shell_exec('nmcli con')));
@@ -24,4 +29,5 @@
shell_exec('nmcli con delete uuid ' . $thisuuid);
}
}
echo "Done."
?>

0 comments on commit f0e3d47

Please sign in to comment.
You can’t perform that action at this time.