File: 660_faxsetup_non_interactive.patch

package info (click to toggle)
hylafax 3%3A6.0.7-13
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 10,848 kB
  • sloc: sh: 15,305; ansic: 14,429; makefile: 1,562; cpp: 781; awk: 529
file content (16 lines) | stat: -rw-r--r-- 671 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Author: 
Description: Avoid interactive installation part while installing
in non interactive way. See Debian bug #582611
Index: hylafax-6.0.7/etc/faxsetup.sh.in
===================================================================
--- hylafax-6.0.7.orig/etc/faxsetup.sh.in
+++ hylafax-6.0.7/etc/faxsetup.sh.in
@@ -2442,7 +2442,7 @@ then
 fi
 
     DEVS="`cd $DIR_SPOOL/etc; echo config.*`"
-    if [ -z "$DEVS" ] || [ "$DEVS" = 'config.*' ]; then
+    if [ "$DEBCONF_FRONTEND" != "non-interactive" -a "$DEBCONF_FRONTEND" != noninteractive ] && [ -z "$DEVS" -o "$DEVS" = 'config.*' ]; then
 	cat<<EOF
 
 You do not appear to have any modems configured for use.  Modems are