Debian Codegraph @

debian/isinstallable

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 set -eu
3
4 . /usr/share/debconf/confmodulescip-shell source . . `/usr/share/debconf/confmodule`.
5
6 logscip-shell shell depthcharge-tools-installer 13 log().() {
7 loggerscip-shell system . . logger. -t "depthcharge-tools-installer" "$@"
8 }
9
10 errorscip-shell shell depthcharge-tools-installer 13 error(). () {
11 logscip-shell shell depthcharge-tools-installer 13 log(). "$@"
12 exit 1
13 }
14
15 # Check if we have a board override.
16 db_get depthcharge-tools-installer/board
17 if [scip-shell system . . `[`. -n "${RET:-}" ]; then
18 logscip-shell shell depthcharge-tools-installer 13 log(). "Pretending this is a ChromeOS board '$RET'."
19 exit 0
20 fi
21
22 # ChromeOS firmware injects one of these values into the cmdline based
23 # on which boot mechanism is used.
24 if ! grepscip-shell system . . grep. "cros_secure" /proc/cmdlinescip-shell filesystem . . `/proc/cmdline`. >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then
25 errorscip-shell shell depthcharge-tools-installer 13 error(). "Not installing to non-ChromeOS board."
26 fi