#!/bin/sh # yaphusbyt (yet another poorly hacked up script by yours truly) # cheap script to run through updating steps with all jaildirs found in /etc/rc.conf - regardless of whether they're live. does a full freebsd install based on the the root host's previous buildworld. we install a kernel too for portability (space is cheap!) and completeness. change hte KERNCONF to GENERIC or similar as desired. jaildirlist=`grep rootdir /etc/rc.conf | awk '{ FS = "=" } { print $NF };' | sed 's/\"//g'` for jaildir in $jaildirlist #do ls -la $jaildir; done # this is a test! do cd /usr/src && make installworld DESTDIR=$jaildir && make installkernel KERNCONF=POTJIE DESTDIR=$jaildir && chroot $jaildir mergemaster; done