Hi there,

If you are like me and reslice, add & remove disks now and then, you may
find this useful:

$ cat /etc/monthly.local
#!/bin/sh -

echo "Saving disklabels."
store="/etc/disklabels"

for disk in $(awk '/^(s|w)d[[:digit:]] / {print $1}' /var/run/dmesg.boot)
do

  disklabel ${disk} > ${store}/${disk}.label 2>&1
  disklabel -t ${disk} > ${store}/${disk}.tab 2>&1
done

echo "Done."



-- 
Craig Skinner | http://www.kepax.co.uk | [EMAIL PROTECTED]

Reply via email to