diff --git a/Slax/debian/modules/04-apps/rootcopy/etc/systemd/system/suspend.target.wants/resume_wifi.service b/Slax/debian/modules/04-apps/rootcopy/etc/systemd/system/suspend.target.wants/resume_wifi.service new file mode 120000 index 0000000..528ff71 --- /dev/null +++ b/Slax/debian/modules/04-apps/rootcopy/etc/systemd/system/suspend.target.wants/resume_wifi.service @@ -0,0 +1 @@ +/lib/systemd/system/resume_wifi.service \ No newline at end of file diff --git a/Slax/debian/modules/04-apps/rootcopy/lib/systemd/system/resume_wifi.service b/Slax/debian/modules/04-apps/rootcopy/lib/systemd/system/resume_wifi.service new file mode 100644 index 0000000..627bf6d --- /dev/null +++ b/Slax/debian/modules/04-apps/rootcopy/lib/systemd/system/resume_wifi.service @@ -0,0 +1,13 @@ +[Unit] +Description=Start wifi after resume +After=suspend.target + +[Service] +User=root +Type=oneshot +ExecStart=/usr/share/wicd/daemon/autoconnect.py +TimeoutSec=0 +StandardOutput=syslog + +[Install] +WantedBy=suspend.target