Skip to content

Instantly share code, notes, and snippets.

@emtudo
Last active March 10, 2019 01:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emtudo/27e0d85e94c489f4bd85040cd6dd17aa to your computer and use it in GitHub Desktop.
Save emtudo/27e0d85e94c489f4bd85040cd6dd17aa to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# ifup hook script for resolvconf
#
# This file is part of the resolvconf package.
#
# Interface of the internet
INTERFACE=`route | grep '^default' | grep -o '[^ ]*$'`
case "$IFACE" in
$INTERFACE)
/etc/init.d/firewall restart
/etc/init.d/docker restart
exit 0
;;
*)
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment