don't always show the first-time installation warning message
authorDennis Groenen <tj.groenen@gmail.com>
Mon, 26 Nov 2012 19:26:59 +0000 (20:26 +0100)
committerDennis Groenen <tj.groenen@gmail.com>
Mon, 26 Nov 2012 19:27:04 +0000 (20:27 +0100)
debian/busybox-power.preinst

index 102de6d..b71d7c2 100644 (file)
@@ -33,6 +33,11 @@ else
   esac
 fi
 
+# Don't show the warning message when the user wants an unattended installation
+# or if $DISPLAY is not set
+if test -z "$DISPLAY" || test -e /tmp/.bbp-unattended; then exit 0; fi
+
+# Warning message
 case $ENVIRONMENT in
   SDK)
     # Extra warning doesn't apply to SDK, just exit