File: netbsd_post.sh

package info (click to toggle)
bochs 2.3-2etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 14,116 kB
  • ctags: 16,927
  • sloc: cpp: 130,524; ansic: 18,822; sh: 7,922; makefile: 3,836; yacc: 1,056; asm: 463; perl: 381; lex: 280; csh: 3
file content (17 lines) | stat: -rwxr-xr-x 343 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh
#
# This is the post-install script called by modload after it has loaded
# the module.
#
# Sample modload commandline:
#
#	modload -e plex86_lkmentry -p netbsd_post.sh plex86.o
# 
if [ $# -ne 3 ]; then
    echo "$0 should only be called from modload(8) with 3 args"
    exit 1
fi

rm -f /dev/plex86
mknod /dev/plex86 c $3 0
exit 0