2000-11-23 17:55:47 -05:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
if [ "$1" = "configure" ]; then
|
2000-11-24 21:05:35 -05:00
|
|
|
ldconfig
|
2000-11-23 20:03:43 -05:00
|
|
|
|
|
|
|
if [ ! -c /dev/raw1394 ]; then
|
2000-12-11 19:28:06 -05:00
|
|
|
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
|
2000-11-24 21:05:35 -05:00
|
|
|
echo -n "Should I create it for you? [Y/n] "
|
2000-11-23 20:03:43 -05:00
|
|
|
read REPLY
|
|
|
|
|
|
|
|
case "$REPLY" in
|
2000-11-24 21:05:35 -05:00
|
|
|
y|yes|"")
|
2001-01-03 21:06:30 -05:00
|
|
|
if (cd /dev && ./MAKEDEV raw1394); then
|
|
|
|
cat <<EOF
|
2000-12-11 19:28:06 -05:00
|
|
|
|
|
|
|
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
|
2001-01-03 21:06:30 -05:00
|
|
|
fi
|
2000-11-23 20:03:43 -05:00
|
|
|
;;
|
|
|
|
*)
|
2000-12-11 19:28:06 -05:00
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
/dev/raw1394 not created. You can create it at a later time manually
|
|
|
|
with the command:
|
|
|
|
|
|
|
|
/dev/MAKEDEV raw1394
|
|
|
|
|
|
|
|
EOF
|
2000-11-23 20:03:43 -05:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
2000-11-23 17:55:47 -05:00
|
|
|
fi
|
|
|
|
|
2000-12-11 19:28:06 -05:00
|
|
|
|
2000-11-23 17:55:47 -05:00
|
|
|
#DEBHELPER#
|