Skip to content

Instantly share code, notes, and snippets.

@ketankr9
Created June 7, 2019 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ketankr9/de8cc7dfdd1df1bfb39fa21f378d3d65 to your computer and use it in GitHub Desktop.
Save ketankr9/de8cc7dfdd1df1bfb39fa21f378d3d65 to your computer and use it in GitHub Desktop.
hotspot login script at boot when the network is ready
#sudo systemctl edit --force --full iitlogin.service
#enter the below script and make sure ```sudo chmod u+x /usr/local/bin/forti```
----------------------------------------------------
[Unit]
Description=IIT Lan Login
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=ketankr9
WorkingDirectory=/home/ketankr9
ExecStart=/usr/local/bin/forti
[Install]
WantedBy=multi-user.target
----------------------------------------------------
#sudo systemctl enable iitlogin.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment