home · contact · privacy
Add basic w530-specific setup scripting.
[config] / buster / setup_scripts / install_for_target.sh
index 86537f9e52eb6d036e399b71e5485c13c781d499..853a67295b80065b94e5c8d6eb1b83743bd5a6f6 100755 (executable)
@@ -10,10 +10,11 @@ aptmark_dir="${config_tree_prefix}/apt-mark"
 
 for target in "$@"; do
     path="${aptmark_dir}/${target}"
+    # TODO: continue if file at $path not found, to get rid of dummy files
     cat "${path}" | while read line; do
         echo "$line"
         if [ ! $(echo "${line}" | cut -c1) = "#" ]; then
-            apt-get -y -o Dpkg::Options::=--force-confdef install "${line}"
+            DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::=--force-confold install "${line}"
         fi
     done
 done