Re: packet writing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It should be easy to port this script, but I think that we can do
better. I am planning to write an udev rule to run pktsetup every time
check-cdrom.sh detects a cd-rw or a dvd-rw. Do you think that it would
be a good thing to do?

Loading the kernel module is easy, I just added a "RUN+="  line to
/etc/udev/rules/50-udev.rules:

---------------------------------------------------
KERNEL=="hd[a-z]", BUS=="ide", SYSFS{removable}=="1",
PROGRAM=="check-cdrom.sh %k CD-R", SYMLINK+="cdwriter cdwriter-%k cdrw
cdrw-%k", RUN+="/sbin/modprobe pktcdvd"
.....
--------------------------------------------------

I am a bit confused on how to run pktsetup. I think that the commands
should be in a new file that can be included in udevtools, so I create
a file named 52-pktsetup.rules:

----------------------------------------------
KERNEL=="hd[a-z]", BUS=="ide", SYSFS{removable}=="1",
PROGRAM=="check-cdrom.sh %k CD-R", RUN+="/usr/bin/pktsetup %k %p"
----------------------------------------------

Apparently pktsetup is not being run. Replacing the command with a
"/bin/sh -c 'echo hi > /root/test" doesn't create a test file....

Is there a log file I can check?

Best Regards,
Rafael

--
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux