summaryrefslogtreecommitdiff
path: root/lkm/ap/apinstall
blob: 1a1fc1e7773d65b84c89e9fee2e61b99fe8ff228 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh
#	$OpenBSD: apinstall,v 1.2 1996/03/05 11:49:32 mickey Exp $
#
# Postinstall script for NetBSD Aperture Driver
# 
# Copyright (C) 1994 The XFree86 Project Inc.
#
if [ $# -ne 3 ]; then
    echo "$0: should be called by modload(8) with 3 arguments"
    exit 1
fi

echo "Major device number: $3"
rm -f /dev/xf86
mknod /dev/xf86 c $3 0
chown root.wheel /dev/xf86
chmod 600 /dev/xf86
exit 0