about summary refs log tree commit diff
path: root/pkgs/applications/misc/gammu/gammu-config-dialog.patch
diff options
context:
space:
mode:
authorMarkus S. Wamser <github-dev@mail2013.wamser.eu>2022-11-04 23:07:35 +0100
committerMarkus S. Wamser <github-dev@mail2013.wamser.eu>2022-11-10 08:30:03 +0100
commit8dc7d564aa91fc6efec474320840480dc92adadd (patch)
tree9dc54369f508daefe990360afb4b2976a6cdc111 /pkgs/applications/misc/gammu/gammu-config-dialog.patch
parent250e6c244f1e062b35ea396a8e6660dc66966f56 (diff)
gammu: fix script dependencies on bash and dialog
Diffstat (limited to 'pkgs/applications/misc/gammu/gammu-config-dialog.patch')
-rw-r--r--pkgs/applications/misc/gammu/gammu-config-dialog.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/applications/misc/gammu/gammu-config-dialog.patch b/pkgs/applications/misc/gammu/gammu-config-dialog.patch
new file mode 100644
index 0000000000000..f9f76bfec00ba
--- /dev/null
+++ b/pkgs/applications/misc/gammu/gammu-config-dialog.patch
@@ -0,0 +1,20 @@
+--- a/utils/gammu-config
++++ b/utils/gammu-config
+@@ -59,16 +59,7 @@
+     shift
+ done
+ 
+-if type dialog > /dev/null 2>&1 ; then
+-    DIALOG=dialog
+-elif type cdialog > /dev/null 2>&1 ; then
+-    DIALOG=cdialog
+-elif type whiptail > /dev/null 2>&1 ; then
+-    DIALOG=whiptail
+-else
+-    echo "You need dialog, cdialog or whiptail installed to make this work"
+-    exit 1
+-fi
++DIALOG=@dialog@
+ 
+ if [ -f "$CONFIG" ] ; then
+     if [ ! -w "$CONFIG" ] ; then