« Sigmix の Wkey というシェアウェア | トップページ | 健太曰く、.... »

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のネタ帳.

|

« Sigmix の Wkey というシェアウェア | トップページ | 健太曰く、.... »

Zaurus 関係」カテゴリの記事

コメント

この記事へのコメントは終了しました。

トラックバック


この記事へのトラックバック一覧です: Memo hotplug:

« Sigmix の Wkey というシェアウェア | トップページ | 健太曰く、.... »