File: radioclk.config

package info (click to toggle)
radioclk 1.0.pristine-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 352 kB
  • sloc: ansic: 2,224; sh: 108; makefile: 81
file content (19 lines) | stat: -rw-r--r-- 296 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -e

# Source debconf library.
. /usr/share/debconf/confmodule

RC="/etc/default/radioclk"

# Load the current value if there is any
if test -f $RC; then
	. $RC
	if test ! -z "$PORT"; then
		db_set radioclk/serialport "$PORT"
	fi
fi

db_input high radioclk/serialport || true
db_go