setup.sh 489 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. echo "Dependencies installing...";
  3. pip install urllib &> /dev/null;
  4. pip install subprocess &> /dev/null;
  5. echo "Installing...";
  6. sudo mkdir /usr/share/usb-wifi-connect
  7. sudo cp -R * /usr/share/usb-wifi-connect
  8. echo "Installing daemon...";
  9. sudo cp -R usb-wifi-connect /etc/init.d/usb-wifi-connect
  10. sudo chmod a+x /etc/init.d/usb-wifi-connect
  11. echo "Starting daemon...";
  12. /etc/init.d/usb-wifi-connect start
  13. echo "Installation successful!";
  14. sudo systemctl enable usb-wifi-connect