

6·
1 month agoI have a custom script, which changes the fan profile (in my case between two thinkfan config files) depending whether the dock is connected or not. That one gets triggered whenever it switches the power source (AC
or BAT0
). (AC gets plugged in -> script starts -> check if dock is connected -> if connected run different profile)
It’s janky but very helpful when it works :D
apt
on its own isn’t safe to use in shell scripts whileapt-get
is. At least, that is the output I get when usingapt
in a script on Debian.That is the only reason, for interactive sessions use
apt
, for automated scriptsapt-get
.