Last active
March 10, 2019 01:54
-
-
Save emtudo/27e0d85e94c489f4bd85040cd6dd17aa to your computer and use it in GitHub Desktop.
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
#!/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