This commit is contained in:
Francois B 2017-12-29 16:43:47 +01:00
parent 9c60373fd0
commit bb8d13d784

View file

@ -1627,25 +1627,6 @@ function installCardReaderMenu () {
installAppsFromListMenu cardreader installAppsFromListMenu cardreader
} }
#TODO:
function installEpsonV500Photo () {
cd /tmp
msg "Téléchargement de iScan"
wget https://download2.ebz.epson.net/iscan/plugin/gt-x770/deb/x64/iscan-gt-x770-bundle-1.0.0.x64.deb.tar.gz
msg "Installation de iScan via DPKG"
tar xzf iscan-gt-x770-bundle-1.0.0.x64.deb.tar.gz
cd /tmp/iscan-gt-x770-bundle-1.0.0.x64.deb
./install.sh
installPackage apt xsane
msg "Ajout à Xsane du backend epkowa du Scanner Epson Perfection V500"
sudo sh -c "echo '# Epson Perfection V500\n\
usb 0x04b8 0x0130' >> /etc/sane.d/epkowa.conf"
}
# #
# update AMD/Intel CPU Microcode # update AMD/Intel CPU Microcode
# #
@ -1662,15 +1643,16 @@ function updateMicrocode () {
printf "[INFO] Microcode updated from "$oldMicrocode" version to "$newMicrocode" version\n" printf "[INFO] Microcode updated from "$oldMicrocode" version to "$newMicrocode" version\n"
} }
#TODO: #
# fix some config issue with Intel Wireless 6320 cards
#
function fixWirelessIntel6320 () { function fixWirelessIntel6320 () {
msg "Backup du fichier iwlwifi.conf" printf "[INFO] backuping config : "
sudo cp /etc/modprobe.d/iwlwifi.conf /etc/modprobe.d/iwlwifi.conf.bak runCmd "sudo cp /etc/modprobe.d/iwlwifi.conf /etc/modprobe.d/iwlwifi.conf.bak"
printf "[INFO] applying config : "
msg "Paramètres dans iwlwifi.conf" runCmd "echo options iwlwifi bt_coex_active=0 swcrypto=1 11n_disable=8 | sudo tee /etc/modprobe.d/iwlwifi.conf"
echo options iwlwifi bt_coex_active=0 swcrypto=1 11n_disable=8 | sudo tee /etc/modprobe.d/iwlwifi.conf printf "[INFO] reboot required !!!"
printf "\n"
msg "!!! REBOOT Nécessaire !!!"
} }
# #
@ -2507,8 +2489,10 @@ function showDevInstallMenu () {
installJava9 installJava9
;; ;;
"javascriptbase") "javascriptbase")
#TODO:
;; ;;
"nodelts") "nodelts")
#TODO:
;; ;;
"mongodb3ce") "mongodb3ce")
installMongo3CEMenu installMongo3CEMenu
@ -2529,6 +2513,7 @@ function showDevInstallMenu () {
installPythonMenu installPythonMenu
;; ;;
"androidenv") "androidenv")
#TODO:
;; ;;
"atom") "atom")
installAtomMenu installAtomMenu
@ -2546,15 +2531,19 @@ function showDevInstallMenu () {
installGeanyMenu installGeanyMenu
;; ;;
"eclipse") "eclipse")
#TODO:
;; ;;
"idea") "idea")
#TODO:
;; ;;
"pycharm") "pycharm")
installPyCharmMenu installPyCharmMenu
;; ;;
"vsc") "vsc")
#TODO:
;; ;;
"androidstudio") "androidstudio")
#TODO:
;; ;;
"sublimetext") "sublimetext")
installSublimeTextMenu installSublimeTextMenu
@ -2680,6 +2669,16 @@ function showHardwareMenu () {
25 80 16 \ 25 80 16 \
"cardreader" "Apps/tools needed for cardreaders" \ "cardreader" "Apps/tools needed for cardreaders" \
"solaar" "Solaar for Logitech Unifying devices" \ "solaar" "Solaar for Logitech Unifying devices" \
"webcam" "Install webcam neede apps" \
"microcode" "Update Intel/AMD CPU microcode" \
"nvidia370" "Install Nvidia 370 graphic drivers" \
"nvidia375" "Install Nvidia 375 graphic drivers" \
"nvidia378" "Install Nvidia 378 graphic drivers" \
"nvidia381" "Install Nvidia 381 graphic drivers" \
"nvidia384" "Install Nvidia 384 graphic drivers" \
"tlp" "Install/Enable TLP for better power management " \
"keyid" "Add udev rules for Key-ID FIDO U2F usb key" \
"WI6320" "Fix Intel Wireless 6320 card config problem" \
"Back" "Back" 3>&1 1>&2 2>&3) "Back" "Back" 3>&1 1>&2 2>&3)
case $hardwareMenuOptions in case $hardwareMenuOptions in
@ -2689,6 +2688,36 @@ function showHardwareMenu () {
"solaar") "solaar")
installAppsFromListMenu installAppsFromListMenu
;; ;;
"webcam")
installWebcamMenu
;;
"microcode")
updateMicrocode
;;
"nvidia370")
installNvidia370Menu
;;
"nvidia375")
installNvidia375Menu
;;
"nvidia378")
installNvidia378Menu
;;
"nvidia381")
installNvidia381Menu
;;
"nvidia384")
installNvidia384Menu
;;
"tlp")
installTLPMenu
;;
"keyid")
installKeyIDuDev
;;
"WI6320")
fixWirelessIntel6320
;;
"Back") "Back")
break break
;; ;;
@ -2698,7 +2727,7 @@ function showHardwareMenu () {
} }
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Entry point of the script # # Entry point of the script #
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# NEVER run the script as root or with sudo !!!! # NEVER run the script as root or with sudo !!!!
@ -2710,7 +2739,7 @@ if ! [ "$UID" -ne "0" ]; then
fi fi
# add a mark to the log file at every script run # add a mark to the log file at every script run
echo "--[ Yggdrasil log ]--[ "$cDate" ]--[ "$cTime" ]----------------------------------------------------------------------------" >> $logFile echo "--[ Yggdrasil log ]--[ "$cDate" ]--[ "$cTime" ]-----------------------" >> $logFile
# #
# Headless Mode # Headless Mode