USBNET Udev Rule
Revision as of 21:45, 28 November 2009 by PuffTheMagic (talk | contribs)
If you use usbnet often to ssh into your Pre you probably are sick of assigning it an IP address every time you plug it in. By using a simple udev rule you can assign a static IP address as soon as it is plugged in.
Create a file in /etc/udev/rules.d (ex. 01-palmpre.rules) and put the following line in it. You can set the IP address to what ever you want or even call dhcpcd instead of ifconfig.
KERNEL=="usb*", ATTRS{product}=="Pre", NAME="pre", RUN+="/sbin/ifconfig pre 192.168.0.200"