]> code.delx.au - monosys/blobdiff - healthcheck/packages
notes: fix raspi install notes, also @home -> @username
[monosys] / healthcheck / packages
index a8cf23c1ab791fe41cc0bb3ed807e7c7df0061c7..0df8c338d9794d8dbb5348941f0062373a477d64 100755 (executable)
@@ -9,26 +9,16 @@ fi
 
 . /etc/os-release
 
-function is_debian {
-    [ "$ID" = debian ] || [ "${ID_LIKE:-}" = debian ]
+function is_distro {
+    [ "$ID" = "$1" ] || [ "${ID_LIKE:-}" = "$1" ]
 }
 
-function is_arch {
-    [ "$ID" = arch ]
-}
-
-if is_debian; then
+if is_distro debian; then
     echo "# aptorphan"
     aptorphan 1>&2
-
-    echo "# aptitude search ~U"
-    aptitude search ~U 1>&2 || true
 fi
 
-if is_arch; then
+if is_distro arch; then
     echo "# pacorphan"
     pacorphan 1>&2
-
-    echo "# checkupdates"
-    checkupdates 1>&2
 fi