Memo hotplug
/etc/hotplug/usbにrtl8150とrtl8150.offを作成 rtl8150(IP) #!/bin/bash ./etc/hotplug/hotplug.functions ifconfig eth0 192.168.1.9 netmask 255.255.255.0 up route add default gw 192.168.1.1; if [ $? = 0]; then ln -s rtl8150.off $REMOVER fi rtl8150(DHCP) #!/bin/bash ./etc/hotplug/hotplug.functions ifconfig eth0 0.0.0.0 up; dhcpcd -k eth0; dhcpcd eth0; if [ $? = 0]; then ln -s rtl8150.off $REMOVER fi rtl8150.off(IP) #!/bin/bash ./etc/hotplug/hotplug.functions ifconfig eth0 down rtl8150.off(DHCP) #!/bin/bash ./etc/hotplug/hotplug.functions dhcpcd -k eth0; ifconfig eth0 down 実行属性をつける # chmod x rtl8150*
| 固定リンク
「Zaurus 関係」カテゴリの記事
- PC-Z1, たぶん、これ買います。(2009.08.28)
- Honma's Computer Life Monthly Index(2006.02.16)
- Memo hotplug(2005.09.06)
- SL-C3000 で使う USB キーボードの調査(2005.06.28)
- LinuxZaurus 上の emacs 内で EPWING な辞書が引きたい。Private Packages for Zaurus SL-C series(2004.12.16)
この記事へのコメントは終了しました。
コメント