#!/usr/local/bin/bash # # updatejail script # (for Zoidial Publishing) # # zoidial, -june, 2001 # until test do echo "You are running udatejail with DIRECTORY: $1" echo "Proceed with updatejail script? (y/n)" read test case $test in y) cd /usr/src make world DESTDIR=$1 #cd etc #make distribution DESTDIR=$1 NO_MAKEDEV=yes cd $1/dev sh MAKEDEV jail cd $1 ln -sf dev/null kernel echo "Jail set up in $1" exit 0 ;; n) echo "Aborting" exit 0 ;; esac done