=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/daily,v retrieving revision 1.90 retrieving revision 1.91 diff -c -r1.90 -r1.91 *** src/etc/daily 2017/07/10 11:18:48 1.90 --- src/etc/daily 2018/02/06 19:57:37 1.91 *************** *** 1,5 **** # ! # $OpenBSD: daily,v 1.90 2017/07/10 11:18:48 bluhm Exp $ # From: @(#)daily 8.2 (Berkeley) 1/25/94 # # For local additions, create the file /etc/daily.local. --- 1,5 ---- # ! # $OpenBSD: daily,v 1.91 2018/02/06 19:57:37 tb Exp $ # From: @(#)daily 8.2 (Berkeley) 1/25/94 # # For local additions, create the file /etc/daily.local. *************** *** 90,96 **** fi rootbak=${rootbak#/dev/} bakdisk=${rootbak%%?(.)[a-p]} ! sysctl -n hw.disknames | grep -Fqw $bakdisk || break bakpart=${rootbak##$bakdisk?(.)} OLDIFS=$IFS IFS=, --- 90,99 ---- fi rootbak=${rootbak#/dev/} bakdisk=${rootbak%%?(.)[a-p]} ! if ! sysctl -n hw.disknames | grep -Fqw $bakdisk; then ! echo "Backup disk '$bakdisk' not present in hw.disknames." ! break ! fi bakpart=${rootbak##$bakdisk?(.)} OLDIFS=$IFS IFS=,