summaryrefslogtreecommitdiff
path: root/system/kqemu/doinst.sh
diff options
context:
space:
mode:
authorhollywoodb <hollywoodb@fastmail.fm>2010-05-11 15:18:40 +0200
committerEric Hameleers <alien@slackbuilds.org>2010-05-11 15:18:40 +0200
commitc80246572d63bd0727df7e6294c59c92110931b5 (patch)
treeffa92402d7ee9ea0d97546e7e3aad05f100eb761 /system/kqemu/doinst.sh
parent09185668b0756017df6d7387cd35f2bbe81f8c75 (diff)
downloadslackbuilds-c80246572d63bd0727df7e6294c59c92110931b5.tar.gz
system/kqemu: Initial import
Diffstat (limited to 'system/kqemu/doinst.sh')
-rw-r--r--system/kqemu/doinst.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/kqemu/doinst.sh b/system/kqemu/doinst.sh
new file mode 100644
index 0000000000..64b4ec816b
--- /dev/null
+++ b/system/kqemu/doinst.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ -x sbin/depmod ]; then
+ chroot . /sbin/depmod -a 1> /dev/null 2> /dev/null
+fi
+
+# Create the kqemu device. No special priviledge is needed to use kqemu.
+device="dev/kqemu"
+rm -f $device
+mknod $device c 250 0
+chmod 666 $device