Skip to content

Instantly share code, notes, and snippets.

@cab404 cab404/10_network_restart
Last active Aug 29, 2015

What would you like to do?
# This script gets NetworkManager out of suspend.
case "$1" in
nmcli radio wifi off
nmcli radio wifi on
echo "Getting upstart script"
sudo wget -q
sudo mv 10_network_restart /etc/pm/sleep.d/
echo "Hooking upstart script to systemd"
sudo wget -q
sudo mv root-resume.service /etc/systemd/system/
echo "Setting permissions"
sudo chmod 755 /etc/pm/sleep.d/10_network_restart
sudo systemctl enable root-resume.service
Description=Local system resume actions
ExecStart=/bin/bash /etc/pm/sleep.d/10_network_restart resume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.