freebsd-ports/sysutils/pcfclock/pkg-install
Pav Lucistnik 9fcf507f17 - Don't abort installation when we fail to make device
PR:		ports/80592
Submitted by:	Frank W. Josellis <frank@dynamical-systems.org> (maintainer)
2005-05-04 14:25:52 +00:00

20 lines
407 B
Bash

#!/bin/sh
case $2 in
POST-INSTALL)
if [ ! -c /dev/pcfclock0 ]; then
rv=1
if [ -x /dev/MAKEDEV ]; then
( cd /dev && ./MAKEDEV pcfclock0 )
rv=$?
fi
if [ ${rv} = 0 ]; then
echo "$2: Device special file /dev/pcfclock0 created"
else
echo "$2: Unexpected failure creating /dev/pcfclock0"
echo "$2: Try 'cd /dev ; mknod pcfclock0 c 140 0 root:wheel'"
fi
fi
;;
esac