> Update the hotplug2 package from hotplug2-0.9 to hotplug2-1.0-beta. > hotplug2-1.0 no longer needs the udevtrigger, so remove that > dependency from target.mk.
That would be a welcome upgrade. > Some changes are needed to the rules. Help on that would be appreciated. Among other things, hotplug-1.0 supports the possibility of setting envvars in some rule and then use it in another. So we can change the rules from something like ... DEVICENAME ~~ (null|full|ptmx|tty|zero|gpio) { makedev /dev/%DEVICENAME% 0666 next } DEVICENAME ~~ (tun|tap[0-9]) { makedev /dev/net/%DEVICENAME% 0644 next } ... to something like DEVPATH is set { setenv FILEMODE 0644 setenv FILEGROUP root } ... DEVICENAME ~~ (null|full|ptmx|tty|zero|gpio) { setenv FILEMODE 0666 } DEVICENAME ~~ (tun|tap[0-9]) { setenv DEVICENAME net/%DEVICENAME% } ... DEVPATH is set, ACTION == add, MAJOR is set, MINOR is set { makedev /dev/%DEVICENAME% %FILEMODE% chgrp /dev/%DEVICENAME% %FILEGROUP% } DEVPATH is set, ACTION == remove, MAJOR is set, MINOR is set { remove /dev/%DEVICENAME% } The main benefit being of course to cleanly support not only the creation of the device nodes, but also their removal. Stefan _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel