News:

SMF - Just Installed!

Main Menu

Folder reference in older script.. Ubuntu's moved on?

Started by mahesh, Sep 21, 2023, 06:57 AM

Previous topic - Next topic

mahesh

Here is a snippet from a script written in 2006, reputed to work on Ubuntu 17.04 (at least the part of the script I'm looking at).

Part of a udev rules script.

I'm slowly picking my way through, getting a broadband modem working, I have posted the wider effort already in the hardware forum so if this would be considered a double post, mods please remove & my apologies

    Code:
# add the new id in the qmi_wwan driver
SUBSYSTEM=="drivers", \
ENV{DEVPATH}=="/bus/usb/drivers/qmi_wwan", \
ATTR{new_id}="03f0 9d1d"

In my latest edition Lubuntu, /bus nor /bus/usb/drivers/qmi_wwan seem to exist.

However, /sys/bus/usb/drivers/qmi_wwan does.

I was hoping move my efforts to get the script working along some by modifying the hard coded references to suit.

Is that a half-sensible idea, or am I being crazy?
I like the dollar uptime thing