File: tablet

package info (click to toggle)
tasksel 3.85
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,636 kB
  • sloc: perl: 703; sh: 219; makefile: 133
file content (23 lines) | stat: -rwxr-xr-x 826 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
#!/bin/sh
# © 2025 Cyril Brulebois <kibi@debian.org>
#
# Lomiri can target regular desktops (task-lomiri-desktop) but also tablets
# (task-lomiri-tablet). We'd like to avoid multiple entries in pkgsel/tasksel,
# so we're only adding one to start with: task-lomiri-desktop.
#
# This test leverages NEW_INSTALL to skip the tablet entry in the installer,
# while still including it if tasksel is run later, within the installed system.
#
# If and when appropriate heuristics are determined, the tablet variant could be
# included in the installer as well, conditionally (without overloading the menu
# for most users).
#
# For example, if $2 is "true" and if hardware is detected as being a tablet:
#
#     exit 0 # show; don't mark.

if [ "$NEW_INSTALL" ]; then
	exit 1 # hide; don't install
else
	exit 3 # show; don't mark
fi