bshlists wrote:
I've been trying run this script on my gentoo laptop, but for some reason it
does not work. If you see what is wrong could you email me. Thanks.
#!/bin/bash
if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
then
rmmod garmin_gps
chmod 666 $DEVICE
fi
$ man test
-f FILE
FILE exists and is a regular file
I don't know the garmin_gps module and its devices, but I assume $DEVICE is a
character device. So the test should be:
... && [ -c "${DEVICE}" ]
Christoph
--
echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" [EMAIL PROTECTED]
--
gentoo-user@gentoo.org mailing list