From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Razza" Date: Thu, 12 Jul 2007 09:05:13 +0000 Subject: RE: udev problem DVB-S/T Cards Message-Id: <002501c7c463$c2a09a20$47e1ce60$@com> List-Id: References: <000301c78982$db8615e0$929241a0$@com> In-Reply-To: <000301c78982$db8615e0$929241a0$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org All, I am still struggling to get my DVB cards to load appropriately. My DVB section of /etc/udev/rules.d/50-udev.rules is as follows - ################################# /etc/udev/rules.d/50-udev.rules ############################### # DVB KERNEL="dvb", MODE="0660" SUBSYSTEM!="dvb", GOTO="dvb_end" ACTION!="add", GOTO="dvb_end" GROUP="video" import{PROGRAM}="/bin/sh -c 'K=%k; K=$${K#dvb}; echo ID_DVB_ADAPTER_KERNEL=$${K%%%%.*}; echo ID_DVB_DEVICE=$${K#*.}'" IMPORT{program}="path_id %p" #Here set ID_DVB_ADAPTER to be persistent # example: ENV{ID_PATH}="pci-0000:01:08.0", ENV{ID_DVB_ADAPTER}="3" ENV{ID_PATH}="pci-0000:01:06.0", ENV{ID_DVB_ADAPTER}="2" # fallback-number ENV{ID_DVB_ADAPTER_KERNEL}="?*", ENV{ID_DVB_ADAPTER}!="?*", ENV{ID_DVB_ADAPTER}="$env{ID_DVB_ADAPTER_KERNEL}" # Create device ENV{ID_DVB_ADAPTER}="?*", ENV{ID_DVB_DEVICE}="?*", NAME="dvb/adapter$env{ID_DVB_ADAPTER}/$env{ID_DVB_DEVICE}" LABEL="dvb_end" ############################# 50-udev.rules END ############################ I have updated the final section of /sbin/path_id from - ############################# path_id ############################ case "$TYPE" in block) handle_block ;; *) RESULT=1 ;; esac ############################# path_id END ############################ To the following, as the diff file Matthias sent me simply didn't work (which I am sure is a case of Fedora just being different to gentoo which I guess he is using) - ############################# path_id ############################ case "$TYPE" in block) handle_block ;; dvb) handle_device echo "ID_PATH=$d" ;; *) RESULT=1 ;; esac ############################# path_id END ############################ Unfortunately the dvb adaptors still load as 0 and 1 as opposed to 2 and 3 as expected. I have now tried this on Fedora 7 (as opposed to core 6 as I was historically) and still get the same response. HELP! ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel