Created
September 7, 2014 13:29
-
-
Save kunst1080/287e560099381d88852d to your computer and use it in GitHub Desktop.
refresh resolv.conf and copy to Jail prisoners and Jail flavors
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 | |
readonly PREFIX=/usr/jails | |
resolvconf -u | |
ls $PREFIX/*/etc/resolv.conf | xargs -I@ cp -v /etc/resolv.conf @ | |
ls $PREFIX/flavors/*/etc/resolv.conf | xargs -I@ cp -v /etc/resolv.conf @ | |
resolvconf -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment