1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/sysutils/pcfclock/pkg-install
Marcus Alves Grando 5fc4fae1e7 - Use new rc.d script
- Bump PORTREVISION
- portlint(1)

PR:		86839
Submitted by:	maintainer
2006-05-01 05:45:47 +00:00

26 lines
571 B
Bash

#!/bin/sh
case $2 in
POST-INSTALL)
if [ ! -c /dev/pcfclock0 ]; then
if [ -x /dev/MAKEDEV ]; then
# FreeBSD 4.x
( cd /dev && ./MAKEDEV pcfclock0 )
rv=$?
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
else
# FreeBSD 5.x or later
echo "$2: No pcfclock device found"
echo "$2: Ensure to have pcfclock support enabled for your kernel"
fi
fi
;;
esac