Hirdetés
- eldiablo: 30 év után szakítottunk, de azért még beszélünk...
- Brogyi: CTEK akkumulátor töltő és másolatai
- gban: Ingyen kellene, de tegnapra
- Luck Dragon: Asszociációs játék. :)
- D1Rect: Nagy "hülyétkapokazapróktól" topik
- Parci: Milyen mosógépet vegyek?
- sziku69: Fűzzük össze a szavakat :)
- Sub-ZeRo: Euro Truck Simulator 2 & American Truck Simulator 1 (esetleg 2 majd, ha lesz) :)
- joghurt: Megtarthatod a jogsid?
- sziku69: Szólánc.
Aktív témák
-
blokad
senior tag
sziasztok.
van ugye fsc laptopokhoz, konkrétan li1718-hoz ez a script:
#!/bin/sh
# This is an installation script for auto installing additional support for
# FSC laptops Amilo A16xx
# Written by Assaf Paz (damagedspline@aim.com)
SUCCESS=1
CURRENT_DIR=$(pwd)
KERNEL_VER=$(uname -r)
AR5005G_OPTION="options ath_pci rfkill=0"
PACKAGES_UPDATED=FALSE
#check ubuntu version
if [ -n "$(grep -i gutsy /etc/issue)" ]; then
UBUNTU_VER=Gutsy
else if [ -n "$(grep -i 7.04 /etc/issue)" ]; then
UBUNTU_VER=Fiesty
else
echo "\033[1mError: Ubuntu version is unsupported. This script will only work on Ubuntu Feisty and Ubuntu Gutsy\033[0m"
exit 1
fi
fi
#check architecture
if [ "$(uname -m)" != "i686" ]; then
echo "\033[1mError: Sorry, for now this script will only work on 32bit systems\033[0m"
exit 1
fi
#check laptop model
if [ -z "$(grep -i a1650g /var/lib/acpi-support/system-product-name)" ]; then
if [ -z "$(grep -i 1718 /var/lib/acpi-support/system-product-name)"]; then
echo "\033[1mError: Sorry, for now this script is only intended for Amilo A1650G && LI1718\033[0m"
exit 1
else
ACERHK_OPTION="options acerhk force_series=6805 autowlan=1"
MODEL="LI1718"
fi
else
ACERHK_OPTION="options acerhk autowlan=1"
MODEL="A1650G"
fi
echo "\033[1mWelcome to the Fujitsu-Siemens Amilo A16xx automated patch for Ubuntu $UBUNTU_VER\033[0m"
echo ;
echo "\033[1mThis script will enable some of the laptop features such as the Special buttons such\033[0m"
echo "\033[1mas Wireless, Browser and Fancy Fan\033[0m"
echo ;
#check superuser
if [ ! $(id -u) = 0 ]; then
echo "\033[1mError: To run this script, one must be with root privilages. Rerun this script prefixed by sudo\033[0m"
exit 1
fi
cd /usr/src
if [ ! -d fsca16xx ]; then
mkdir fsca16xx
fi
cd fsca16xx
if [ -z "$(modinfo acerhk | grep 9D90EC70E8FEF03A2BDC3C0)" ]; then
if [ ! -d acerhk-0.5.35 ]; then
echo "\033[1mTrying to download precompiled kernel module for Special Buttons\033[0m"
if ! wget -q http://fscamiloa16xx.googlecode.com/svn/trunk/$UBUNTU_VER/$KERNEL_VER/acerhk.ko; then
echo "\033[1mWarning: No precompiled modules for $KERNEL_VER, trying to recompile\033[0m"
if [ ! -e acerhk-current.tgz ]; then
if ! wget -q http://freshmeat.net/redir/acerhk/30497/url_tgz/acerhk-current.tgz; then
echo "\033[1mError: Unable to download acerhk source code\033[0m"
exit 1
fi
echo "\033[1mAcerHK source code downloaded successfully\033[0m"
fi
tar xzf acerhk-current.tgz
if ! cd acerhk-0.5.35; then
echo "\033[1mError: Something wrong with downloaded AcerHK, try manual download of acerhk 0.5.35 and place it under /usr/src/fsca16xx/\033[0m"
exit 1
fi
if ! wget -q http://fscamiloa16xx.googlecode.com/files/acerhk-0.5.35-FSC-AMILO_A16xx.patch; then
echo "\033[1mError: Unable to retrieve acerhk patch\033[0m"
fi
echo "\033[1mPatching AcerHK\033[0m"
patch -i acerhk-0.5.35-FSC-AMILO_A16xx.patch acerhk.c
echo "\033[1mInstalling required kernel module building tools - this may take a while...\033[0m"
if [ -z "$(dpkg --list |grep build-essential)" -o -z "$(dpkg --list |grep linux-headers-generic)" ]; then
if [ $PACKAGES_UPDATED == FALSE ];then
echo "\033[1mUpdating package lists. This may take a while...\033[0m"
if ! apt-get update > /dev/null; then
echo "\033[1mError: Unable to update package lists... Probably won't be able install packages either...\033[0m"
exit 1
fi
fi
if ! apt-get -y install build-essential linux-headers-generic > /dev/null; then
echo "\033[1mError: Unable to install required packages to build acerhk\033[0m"
exit 1
fi
fi
if make > ../compile.log ; then
echo "\033[1mCompile ended successfully!\033[0m"
mv acerhk.ko ../
cd ..
else
echo "\033[1mError: AcerHK compile failed, compile log can be found at /tmp/FSC/$KERNEL_VER/compile.log\033[0m"
fi
else
echo "\033[1mSuccess\033[0m"
fi
fi
echo "\033[1mReplacing Acerhk module\033[1m"
ACERHK_PATH="$(find /lib/modules/$(uname -r) |grep -m 1 acerhk)"
mv -uf acerhk.ko $ACERHK_PATH
cd ..
fi
echo "\033[1mDownloaing additional files required by setup\033[0m"
if [ "$1" = update -o ! -e fsc-cpuspeed.sh ]; then
wget -q http://fscamiloa16xx.googlecode.com/svn/trunk/$UBUNTU_VER/fsc-cpuspeed.sh
fi
if [ "$1" = update -o ! -e fsc-wireless.sh ]; then
wget -q http://fscamiloa16xx.googlecode.com/svn/trunk/$UBUNTU_VER/fsc-wireless.sh
fi
chmod 755 *.sh
if [ "$1" = update -o ! -e fsca16xx.def ]; then
wget -q http://fscamiloa16xx.googlecode.com/svn/trunk/$UBUNTU_VER/fsca16xx.def
fi
if [ "$1" = update -o ! -e hotkeys.desktop ]; then
wget -q http://fscamiloa16xx.googlecode.com/svn/trunk/$UBUNTU_VER/hotkeys.desktop
fi
echo "\033[1mSetting all features to auto-activate on startup\033[0m"
cp -uf *.sh /etc/acpi/
cp -uf fsca16xx.def /usr/share/hotkeys/
cp -uf hotkeys.desktop /usr/share/gnome/autostart/
echo "\033[1mAdding kernel support for Special Buttons\033[0m"
if [ -z "$(grep acerhk /etc/modules)" ]; then
echo acerhk >> /etc/modules
fi
if [ -z "$(grep acerhk /etc/modprobe.d/options)" ]; then
echo $ACERHK_OPTION >> /etc/modprobe.d/options
else
if [ "$(grep acerhk /etc/modprobe.d/options)" != "$ACERHK_OPTION" ]; then
grep -v acerhk /etc/modprobe.d/options > /etc/modprobe.d/options.fsc
echo $ACERHK_OPTION >> /etc/modprobe.d/options.fsc
mv /etc/modprobe.d/options.fsc /etc/modprobe.d/options
fi
fi
#wireless driver section
if [ -n "$(lspci |grep -i ar5005g)" ]; then
echo "\033[1mAtheros AR5005G wireless card was found.\033[0m"
if [ "$(grep ath_pci /etc/modprobe.d/options)" != "$AR5005G_OPTION" ]; then
echo "\033[1mFixing options for better integration with NetworkManager\033[0m"
grep -v ath_pci /etc/modprobe.d/options > /etc/modprobe.d/options.fsc
echo $AR5005G_OPTION >> /etc/modprobe.d/options.fsc
mv /etc/modprobe.d/options.fsc /etc/modprobe.d/options
fi
else
if [ -n "$(lspci |grep -i atheros |grep -i unknown)" ]; then
echo "\033[1mWarning: Unknown Atheros chipset - replacing native wireless driver\033[0m"
#blacklist madwifi
if [ -z "grep ath_pci /etc/modprobe.d/blacklist" ]; then
echo "blacklist ath_pci" >> /etc/modprobe.d/blacklist
if [ -n "lsmod |grep ath_pci" ]; then
rmmod ath_pci
fi
fi
#blacklist netathr
if [ -z "grep netathr /etc/modprobe.d/blacklist" ]; then
echo "blacklist netathr" >> /etc/modprobe.d/blacklist
if [ -n "lsmod |grep netathr" ]; then
rmmod netathr
fi
fi
#blacklist sis163u
if [ -z "grep sis163u /etc/modprobe.d/blacklist" ]; then
echo "blacklist sis163u" >> /etc/modprobe.d/blacklist
if [ -n "lsmod |grep sis163u" ]; then
rmmod sis163u
fi
fi
if [ -z "$(dpkg --list |grep ndiswrapper-utils)" ]; then
if [ $PACKAGES_UPDATED == FALSE ];then
echo "\033[1mUpdating package lists. This may take a while...\033[0m"
if ! apt-get update > /dev/null; then
echo "\033[1mError: Unable to update package lists... Probably won't be able install packages either...\033[0m"
exit 1
fi
fi
if ! apt-get -y install ndiswrapper-utils-1.9 > /dev/null; then
echo "\033[1mError: Problem while installing required packages\033[0m"
exit 1
fi
fi
if [ -z "$(ndiswrapper -l | grep present)" ]; then
if [ ! -d driver ]; then
mkdir driver
fi
cd driver
if [ ! -e xp32-5.3.0.56-whql.zip ]; then
if ! wget -q http://www.atheros.cz/download/drivers/ar5xxx/xp32-5.3.0.56-whql.zip; then
echo "\033[1mError: Unable to download xp32-5.3.0.56-whql.zip\033[0m"
exit 1
fi
fi
unzip -fq xp32-5.3.0.56-whql.zip
if [ -z "$(grep ndiswrapper /etc/modules)" ]; then
echo ndiswrapper >> /etc/modules
fi
ndiswrapper -i net5211.inf
modprobe ndiswrapper
if [ -z "$(ndiswrapper -l | grep present)" ]; then
echo "\033[1mError: ndisdriver driver installation failed, setup will continue non-the-less but wireless is not likely to work...;\033[0m"
echo "\033[1mError:...please try to install the driver manually using 'sudo ndiswrapper -i <driver inf file name>'\033[0m"
ndiswrapper -r net5211
fi
cd ..
fi
fi
fi
#audio section
if [ "LI1718" = $MODEL -a "Fiesty" = $UBUNTU_VER ]; then
if [ -z "$(grep snd-hda-intel /etc/modprobe.d/alsa-base)" ]; then
echo "\033[1mFix audio issue\033[0m"
echo "options snd-hda-intel index=0 model=3stack" >> /etc/modprobe.d/alsa-base
fi
fi
echo "\033[1mLoading kernel modules for Special Buttons\033[0m"
if [ -n "$(lsmod |grep acerhk)" ]; then
rmmod acerhk
fi
modprobe acerhk
if [ -z "$(dpkg --list |grep hotkeys)" -o -z "$(dpkg --list |grep libnotify-bin)" ]; then
if [ $PACKAGES_UPDATED = FALSE ];then
echo "\033[1mUpdating package lists. This may take a while...\033[0m"
if ! apt-get update > /dev/null; then
echo "\033[1mError: Unable to update package lists... Probably won't be able install packages either...\033[0m"
exit 1
fi
fi
if ! apt-get -y install hotkeys libnotify-bin > /dev/null; then
echo "\033[1mError: Problem while installing required packages\033[0m"
exit 1
fi
fi
echo "\033[1mDone. Please logout and relogin in order to start using the hotkeys.\033[0m"
cd $CURRENT_DIRez, és ennek verizói 8.10-ig tökéletesen mentek. kérdésem, aki ért hozzá, megcsinálná 9.04-re?
Már csak ez tart vissza a váltástól.
előre is köszönöm.
Aktív témák
Hirdetés
- Mobil flották
- Milyen asztali (teljes vagy fél-) gépet vegyek?
- EAFC 26
- Házimozi belépő szinten
- Autós topik látogatók beszélgetős, offolós topikja
- A CannonKeys felkavarja a slim profilos billentyűzetek állóvizét
- AMD Navi Radeon™ RX 9xxx sorozat
- 3D nyomtatás
- Windows 11
- Kamionok, fuvarozás, logisztika topik
- További aktív témák...
- MS SQL Server 2016, 2017, 2019
- Eredeti Microsoft termékek - MEGA Akciók! Windows, Office Pro Plus, Project Pro, Visio Pro stb.
- MEGA AKCIÓ! - Jogtiszta Windows - Office & Autodesk & CorelDRAW - Azonnal - Számlával - Garanciával
- Számlás!Steam,EA,Epic és egyébb játékok Pc-re vagy XBox!
- Game Pass Ultimate előfizetések 1 - 36 hónapig azonnali kézbesítéssel a LEGOLCSÓBBAN! AKCIÓ!
- PS4 Pro 1TB + DualShock 4 Controller Játékkonzol
- BESZÁMÍTÁS! MSI B550M R5 5600X 16GB DDR4 512GB SSD RTX 3070 8GB Lian Li Lancool 207 GIGABYTE 750W
- Dell Latitude 7330 i7-1255U 16GB 1TB 400nites legjobb kijelző! 1 év garancia
- Eladó használt Huawei P30 Lite 4/128GB / 12 hónap jótállás
- BESZÁMÍTÁS! GIGABYTE B760M i7 12700 32GB DDR4 1TB SSD RX 7800 XT 16GB ASUS A31 PLUS ARGB 750W
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest

