Created
June 13, 2017 10:18
-
-
Save Savagedlight/e5f609defa04c06fba3b66be8b685e48 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 | |
# "THE BEER-WARE LICENSE" (Revision 42): | |
# <marieheleneka@gmail.com> wrote this file. As long as you retain this notice you | |
# can do whatever you want with this stuff. If we meet some day, and you think | |
# this stuff is worth it, you can buy me a beer in return. | |
# Marie Helene Kvello-Aune, 13th June 2017. | |
C_GREEN='\033[0;32m' | |
C_YELLOW='\033[0;33m' | |
C_CYAN='\033[0;36m' | |
C_NONE='\033[0;0m' | |
cd /usr/src | |
echo "Found" `ls -ld /usr/jails/* | wc -l` "jails" | |
for d in /usr/jails/*/; do | |
/bin/echo -n `echo -e "${C_CYAN}Updating jail ${C_YELLOW}${d}${C_NONE}\t - "` | |
make installworld DESTDIR=${d} > /dev/null 2>&1 | |
echo -e " ${C_GREEN}Done.${C_NONE}" | |
done | |
echo -e "${C_GREEN}Done.${C_NONE}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment