Difference between revisions of "USBNET Udev Rule"
Jump to navigation
Jump to search
PuffTheMagic (talk | contribs) (New page: 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 a...) |
(No difference)
|
Revision as of 21:01, 28 November 2009
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 (obviously changing the mac address appropriately).
KERNEL=="usb*", ATTR{address}=="d6:4b:6b:0c:a7:65", NAME="pre", RUN+="/sbin/ifconfig pre 192.168.0.200"