File: init_help

package info (click to toggle)
partman-target 134
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,180 kB
  • sloc: sh: 479; makefile: 16
file content (28 lines) | stat: -rwxr-xr-x 646 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

. /usr/share/debconf/confmodule

# Only run the first time
if [ -f /var/lib/partman/initial_help ]; then
	exit 0
fi
mkdir -p /var/lib/partman
touch /var/lib/partman/initial_help

if [ -x /usr/bin/archdetect ]; then
	arch=$(archdetect)
else
	arch=unknown/generic
fi

db_reset partman-target/arch_help/$arch
db_subst partman-target/arch_help/$arch BOOTABLE 'B'

db_reset partman-target/help
db_metaget partman-target/arch_help/$arch description || RET=''
db_subst partman-target/help ARCHITECTURE_HELP  "$RET"
db_subst partman-target/help KEEP 'K'
db_subst partman-target/help DESTROY 'F'
db_subst partman-target/help FORMAT 'f'

exit 0