#!/bin/sh zfs_mount() { echo Mount zfs disk zfs set readonly=off llroot zfs mount -a adjkerntz -i /etc/rc.d/syscons start } mountro=`zfs get -H readonly llroot/ROOT/master | cut -w -f 3` [ ${mountro} = "on" ] && zfs_mount mergemaster -p cd /usr/src && \ make installworld && \ mergemaster -iF && \ make delete-old && \ echo "reboot to delete old libs"