summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUmut Tezduyar <umut@tezduyar.com>2013-03-14 14:58:40 +0100
committerKay Sievers <kay@vrfy.org>2013-03-25 18:40:38 +0100
commitd95fd3df5997b0dab8650d9427997d295d0975e3 (patch)
treeacd2477b766fc2e1b3e27728a3a9bc64c9c998f2
parent80c39ad27f5e99b1f18bdacd2b27a05ddee6cca1 (diff)
build-sys: configurable debug shell tty path
-rw-r--r--configure.ac9
-rw-r--r--units/debug-shell.service.in4
2 files changed, 11 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index f1bf7582fd..d6e5a090bd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -755,6 +755,15 @@ AS_IF([test "x$enable_keymap" = "xyes"], [
AM_CONDITIONAL([ENABLE_KEYMAP], [test "x$enable_keymap" = "xyes"])
# ------------------------------------------------------------------------------
+debugshell=/dev/tty9
+AC_ARG_WITH([debugshelltty],
+ [AS_HELP_STRING([--with-debugshelltty=PATH],
+ [Specify the tty device for debug shell])],
+ [debugshell="$withval"],
+ [])
+AC_SUBST(debugshell)
+
+# ------------------------------------------------------------------------------
have_manpages=no
AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
AS_IF([test "x$enable_manpages" != xno], [
diff --git a/units/debug-shell.service.in b/units/debug-shell.service.in
index 2aa98d3cc5..50afb11e90 100644
--- a/units/debug-shell.service.in
+++ b/units/debug-shell.service.in
@@ -6,7 +6,7 @@
# (at your option) any later version.
[Unit]
-Description=Early root shell on tty9 FOR DEBUGGING ONLY
+Description=Early root shell on @debugshell@ FOR DEBUGGING ONLY
Documentation=man:sushell(8)
DefaultDependencies=no
IgnoreOnIsolate=yes
@@ -17,7 +17,7 @@ ExecStart=@sushell@
Restart=always
RestartSec=0
StandardInput=tty
-TTYPath=/dev/tty9
+TTYPath=@debugshell@
TTYReset=yes
TTYVHangup=yes
KillMode=process