参考网址:https://bugs.launchpad.net/ubuntu/+source/linux/+bug/880316
方法一:
> sudo apt-get install linux-headers-$(uname -r) build-essential
> wget ftp://driver.jmicron.com.tw/Ethernet/Linux/jmebp-1.0.8.5.tar.bz
> tar xvf jmebp-1.0.8.5.tar.bz
> cd jmebp-1.0.8.5
> make
> sudo make install
> sudo update-initramfs -u
方法二:
写一个test.sh文件内容如下:
#!/bin/sh
apt-get install linux-headers-$(uname -r) build-essential
if [ $? -ne 0 ]
then
echo "Failure to install headers and build-essential"
exit 1
fi
#wget ftp://driver.jmicron.com.tw/Ethernet/Linux/jmebp-1.0.8.5.tar.bz
#if [ $? -ne 0 ]
#then
# echo "Failure to wget jmicron drivers"
# exit 2
#fi
#tar xvf jmebp-1.0.8.5.tar.bz
#if [ $? -ne 0 ]
#then
# echo &#