Created
June 7, 2019 05:08
-
-
Save ketankr9/de8cc7dfdd1df1bfb39fa21f378d3d65 to your computer and use it in GitHub Desktop.
hotspot login script at boot when the network is ready
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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