Created
October 15, 2014 02:58
-
-
Save gayanhewa/04b39f7122285c09d6f2 to your computer and use it in GitHub Desktop.
Reload wireless on resume - systemd
This file contains 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
[Unit] | |
Description=Restart WiFi on Resume | |
After=suspend.target | |
[Service] | |
Type=oneshot | |
RemainAfterExit=no | |
ExecStart=/usr/bin/modprobe -r rtl8821ae | |
ExecStart=/usr/bin/modprobe rtl8821ae | |
ExecStart=/usr/bin/ifconfig wlp3s0 down | |
ExecStart=/usr/bin/systemctl restart netctl | |
ExecStart=/usr/bin/systemctl -f disable netctl@home | |
ExecStart=/usr/bin/systemctl -f enable netctl@home | |
ExecStart=/usr/bin/systemctl start netctl@home | |
[Install] | |
WantedBy=suspend.target |
This doesn't work with the netctl-auto connect yet. But its also possible to reuse the same service to on startup to kick off wireless connection.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
netctl@home refers to my wifi profile setup in netctl.