其實方法很簡單,檢查 /sys/class/net/eth0/carrier 這個檔案就可以了
如果值為 1 的話代表有接上網路線
如果值為 0 的話代表沒有接上網路線
不過這也要看該網路卡的驅動程式有沒有實做這個部份
如果值為 1 的話代表有接上網路線
如果值為 0 的話代表沒有接上網路線
不過這也要看該網路卡的驅動程式有沒有實做這個部份
./hiChannel.sh -a下載點
wget http://fd.idv.tw/tux/hiChannel.sh
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Monitor"
Identifier "HDMI-1"
Option "Ignore" "True"
EndSection
Section "Monitor"
Identifier "HDMI-2"
Option "Ignore" "True"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Modes "1280x1024" "1280x800" "1024x768"
Virtual 2640 1024
EndSubSection
EndSection
Section "Device"
Identifier "Configured Video Device"
Driver "intel"
Option "monitor-HDMI-1" "HDMI-1"
Option "monitor-HDMI-2" "HDMI-2"
EndSection
keycode 151 = Menu然後再 xmodmap ~/.xmodmap 馬上就可以使用了
# defoptions=quiet vga=0x0368然後再使用 sudo update-grub
<match key="info.product" string="TPPS/2 IBM TrackPoint">
<merge key="input.x11_options.EmulateWheel" type="string">true</merge>
<merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
<merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
<merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
<merge key="input.x11_options.EmulateWheelTimeout" type="string">200</merge>
</match>
sudo mkdir /mnt/sda3接著再使用原本的 BIOS 升級程式隨便選一個 BIOS ROM 重新啟動後
sudo mount /dev/sda3 /mnt/sda3
sudo cp /media/DEVICE/data/702.ROM /mnt/sda3