update readme
[distro-setup] / distro-begin
index 4ea084246b4d59d9aae6c5977a6ef54df3c6c655..9a7a9adae33d41b3298d98e78971d2cba1556a0c 100755 (executable)
@@ -65,7 +65,7 @@ if [[ $1 ]]; then
     export HOSTNAME=$1
 fi
 
-for f in iank-dev htpc treetowl x2 frodo tp li lj demohost kw; do
+for f in iank-dev htpc treetowl x2 frodo tp li lj demohost kw fz; do
     eval "$f() { [[ $HOSTNAME == $f ]]; }"
 done
 has_p() { ! linode; } # when tp is tracis, then not tp either
@@ -289,11 +289,14 @@ case $distro in
     trisquel|ubuntu)
         # noticed in flidas.
         #https://bugs.launchpad.net/ubuntu/+source/module-init-tools/+bug/240553
+        #https://wiki.debian.org/KernelModuleBlacklisting
+        #common advice when searching is to use /etc/modprobe.d/blacklist.conf,
+        #but that file won't work and will get automatically reverted
         sudo rmmod evbug ||: # might not be loaded yet
-        file=/etc/modprobe.d/blacklist.conf
+        file=/etc/modprobe.d/evbug.conf
         line="blacklist evbug"
         if ! grep -xFq "$line" $file; then
-            sudo tee -a $file &>/dev/null <<<"$line"
+            sudo dd of=$file 2>/dev/null <<<"$line"
             sudo depmod -a
             sudo update-initramfs -u
         fi
@@ -346,7 +349,10 @@ case $(distro-name) in
             else
                 pi xmacro
             fi
-            pi gtk-redshift xinput
+            pi xinput
+            # recommends gets us geoclue (for darkening automatically at night i assume),
+            # which recommends modemmanager, which is annoying to fix for the model01 keyboard.
+            pi --no-install-recommends gtk-redshift
         fi
         ;;&
     fedora)