aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/pcfclock/pkg-install
blob: c9dee1bc1ddd33e2a727e4bb3a7dffb70c48ce50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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