X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=buster%2Fsetup_scripts%2Fsetup_desktop.sh;h=97488e1977314d11ff50a2f73a5dff7516880629;hb=641d2b2470648a3f43d8693e1efaf35210152269;hp=4cce5db7677b0d6ea063ce7f413f4d59fc3238ef;hpb=cb3f7e2e8fbc76518f7dd808d990649399ff0c71;p=config diff --git a/buster/setup_scripts/setup_desktop.sh b/buster/setup_scripts/setup_desktop.sh index 4cce5db..97488e1 100755 --- a/buster/setup_scripts/setup_desktop.sh +++ b/buster/setup_scripts/setup_desktop.sh @@ -5,7 +5,7 @@ if [ "$#" -ne 1 ]; then echo 'Need exactly one argument (system name).' false fi -if [ ! "$1" = "eeepc" ] && [ ! "$1" = "x200s" ]; then +if [ ! "$1" = "eeepc" ] && [ ! "$1" = "x200s" ] && [ ! "$1" = "x220" ] && [ ! "$1" = "w530" ]; then echo "Need legal system name." false fi @@ -15,12 +15,19 @@ system_name="$1" config_tree_prefix="${HOME}/config/buster" setup_scripts_dir="${config_tree_prefix}/setup_scripts" cd "${setup_scripts_dir}" -./setup.sh "${system_name}" "" -./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" user "${system_name}" -./install_for_target.sh user "${system_name}" +if [ "$1" = "x200s" ] || [ "$1" = "x220" ] || [ "$1" = "w530" ]; then + ./setup.sh "${system_name}" "" user desktop thinkpad "${system_name}" +else + ./setup.sh "${system_name}" "" user desktop "${system_name}" +fi +# For hibernation on lid switch to work, we need a newer kernel on the EeePC, +# see . +if [ "${system_name}" = "eeepc" ]; then + apt -y install -t buster-backports linux-image-amd64 +fi # Set up printer. -lpadmin -p 'HP_Deskjet_F300_series' -m 'drv:///hpcups.drv/hp-deskjet_f300_series.ppd' -o 'OutputMode=NormalGray' +lpadmin -p 'HP_Deskjet_F300_series' -m 'drv:///hpcups.drv/hp-deskjet_f300_series.ppd' -o 'OutputMode=NormalGray' -E service cups restart # Install Firefox directly from Mozilla. @@ -46,7 +53,7 @@ url_umatrix="https://github.com/gorhill/uMatrix/releases/download/${umatrix_vers wget "${url_umatrix}" name=$(unzip -p "${umatrix_xpi}" manifest.json | jq -r .applications.gecko.id) mv "${umatrix_xpi}" "${name}".xpi -tridactyl_version="1.17.1pre3455" +tridactyl_version="1.17.1pre3355" tridactyl_xpi="tridactyl_beta-${tridactyl_version}-an+fx.xpi" url_tridactyl="https://tridactyl.cmcaine.co.uk/betas/${tridactyl_xpi}" wget "${url_tridactyl}"