File: S60auto-install

package info (click to toggle)
preseed 1.85
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 800 kB
  • ctags: 12
  • sloc: sh: 435; perl: 153; makefile: 5
file content (17 lines) | stat: -rwxr-xr-x 573 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh

. /usr/share/debconf/confmodule

if db_get auto-install/enable && [ "$RET" = true ]; then
	# disable locale & kbd selection for now
	echo 1 >/var/run/auto-install.active
	# check that no preseed has been specified
	if ! [ -e /preseed.cfg ] &&
	   ! { db_get preseed/url  && [ "$RET" ]; } &&
	   ! { db_get preseed/file && [ "$RET" ]; }; then
		# register that no preseed was specified.
		touch /var/run/preseed_unspecified_at_boot
		# A preseed URL might still be delivered via DHCP.
		# auto-install.sh checks for that, and removes the file if need be.
	fi
fi