Skip to content

Instantly share code, notes, and snippets.

@drewsberry
Created July 16, 2015 17:12
Show Gist options
  • Save drewsberry/eb09e9f1f9876b31f84a to your computer and use it in GitHub Desktop.
Save drewsberry/eb09e9f1f9876b31f84a to your computer and use it in GitHub Desktop.
Samsung Ubuntu Network Manager wifi suspend fix
#!/bin/sh
# This was put here by Drew Silcock on 16th July 2015 in an attempt to fix
# Wi-Fi issues on Ellen's Samsung laptop. It should be placed under
# `/etc/pm/sleep.d/`.
case "${1}" in
resume|thaw)
service network-manager stop
killall wpa_supplicant
rm /var/lib/NetworkManager/NetworkManager.state
service network-manager start
rfkill block bluetooth
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment