diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-08-03 23:05:56 +0800 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-08-03 23:05:56 +0800 |
commit | 9938622a65e6b029dc11f21f056311fd093b82b9 (patch) | |
tree | 4a66794918b5906b19300fda8baad93bb4c4950a /sh/upd | |
parent | 22e331aed277425c7ba0ee3de8f97ff94f972fe6 (diff) |
Not work means after I plug in external HDD, it is not even listed in
`lsblk -f`. So I change upd funciton orders.
Diffstat (limited to 'sh/upd')
-rwxr-xr-x | sh/upd | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -12,13 +12,17 @@ all () { if [ "$hostname" = xyzib ]; then qb fi + # After linux upgrade, if not reboot, plug in external HDD will not be + # detected, not sure about USD thumb drive tho. monthly_misc() needs to + # plug in USD thumb drive, so monthly_misc() needs to run before pac() + # which is in fast(). + monthly_misc fast clean # don't run reflector if it is pp or insp, because they all VPN to ba now if ! { [ "$hostname" = xyzpp ] || [ "$hostname" = xyzinsp ];}; then refl fi - monthly_misc if [ "$hostname" = xyzinsp ] || [ "$hostname" = xyzpp ]; then userjs fi @@ -163,11 +167,14 @@ clean () { # basic daily stuff fast () { - pac - misc + # After linux upgrade, if not reboot, plug in external HDD will not be + # detected. backup() needs to plugin external HDD, so backup() needs to run + # before pac() if [ "$hostname" = xyzinsp ] || [ "$hostname" = xyzpp ]; then backup fi + pac + misc } userjs () { |