summaryrefslogtreecommitdiffstats
path: root/debian/libraw1394.postinst.in
diff options
context:
space:
mode:
authorGravatar aeb 2001-08-01 12:30:48 +0000
committerGravatar aeb 2001-08-01 12:30:48 +0000
commit4c165f62dbd1d7bb882eea3f1dfa1f43df62701c (patch)
tree9a4709004f95c8a3ecab797b6256a9786fb59f8e /debian/libraw1394.postinst.in
parentReworked some paragraphs. (diff)
Add raw1394_get_local_id, _irm_id, _nodecount refentry.
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@73 53a565d1-3bb7-0310-b661-cf11e63c67ab
Diffstat (limited to 'debian/libraw1394.postinst.in')
-rw-r--r--debian/libraw1394.postinst.in46
1 files changed, 9 insertions, 37 deletions
diff --git a/debian/libraw1394.postinst.in b/debian/libraw1394.postinst.in
index d779f3e..d74fc34 100644
--- a/debian/libraw1394.postinst.in
+++ b/debian/libraw1394.postinst.in
@@ -1,44 +1,16 @@
#!/bin/sh -e
-if [ "$1" = "configure" ]; then
- ldconfig
-
- if [ ! -c /dev/raw1394 ]; then
- cat <<EOF
-
-Required /dev/raw1394 device file not found. Without it, libraw1394
-is quite useless as it can not talk to the kernel driver.
-
-EOF
- read -p "Should I create it for you? [Y/n] " REPLY || REPLY=no
-
- case "$REPLY" in
- y|yes|"")
- if (cd /dev && ./MAKEDEV raw1394); then
- cat <<EOF
+. /usr/share/debconf/confmodule
+db_version 2.0
-Device file created. You may want to fix the group/permission to
-something appropriate for you. Note however that anyone who can open
-raw1394 can access all devices on all connected 1394 buses
-unrestricted, including harddisks and other probably sensitive
-devices.
-
-EOF
- fi
- ;;
- *)
- cat <<EOF
-
-/dev/raw1394 not created. You can create it at a later time manually
-with the commands:
-
- cd /dev; ./MAKEDEV raw1394
+if [ "$1" = "configure" ]; then
+ db_get libraw1394/dev/create_node
-EOF
- ;;
- esac
- fi
+ if [ "$RET" = "true" ]; then
+ echo -n "Creating device node /dev/raw1394... "
+ cd /dev && ./MAKEDEV raw1394
+ echo "done."
+ fi
fi
-
#DEBHELPER#