]> git.ipfire.org Git - thirdparty/asterisk.git/commit
contrib: Let safe_asterisk script continue without /dev/tty9. 68/3868/1
authorWalter Doekes <walter+github@wjd.nu>
Fri, 9 Sep 2016 11:26:01 +0000 (13:26 +0200)
committerWalter Doekes <walter+asterisk@wjd.nu>
Fri, 9 Sep 2016 11:30:16 +0000 (06:30 -0500)
commitd980085d38dcf735cbce8c0859e5fcbe459388b8
treec74e0f4dd1f5edd80e3d23a0df694ff9b75874b2
parentd7d22a2be5fdbbfb7339d8f13aa279a284a27e5e
contrib: Let safe_asterisk script continue without /dev/tty9.

If you use the safe_asterisk script, it uses hardcoded defaults before
running configurable values from /etc/asterisk/startup.d. The hardcoded
default has TTY=9. Some containerized environments don't have such a
TTY, and safe_asterisk would stop.

The custom configuration from /etc/asterisk/startup.d/* isn't read until
after it stopped, so changing TTY in a custom config did not help.

This changeset changes safe_asterisk to continue if the TTY setting was
untouched and /dev/tty9 and /dev/vc/9 aren't found.

Change-Id: I2c7cdba549b77f418a0af4cb1227e8e6fe4148fc
contrib/scripts/safe_asterisk