summarylogtreecommitdiffstats
path: root/nokiatool-archpackage.patch
diff options
context:
space:
mode:
authorroot2022-02-05 17:58:55 +0100
committerroot2022-02-05 17:58:55 +0100
commit555a5e58ee9e51f2a276c97abbed3730a99d9d14 (patch)
treebbc9cd28232dfec08739bbbfc0740d4ea3f1bda8 /nokiatool-archpackage.patch
downloadaur-555a5e58ee9e51f2a276c97abbed3730a99d9d14.tar.gz
Initial commit.
Diffstat (limited to 'nokiatool-archpackage.patch')
-rw-r--r--nokiatool-archpackage.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/nokiatool-archpackage.patch b/nokiatool-archpackage.patch
new file mode 100644
index 000000000000..90a9a019060c
--- /dev/null
+++ b/nokiatool-archpackage.patch
@@ -0,0 +1,15 @@
+--- nokiatool.sh.org 2022-02-05 17:07:46.889322592 +0100
++++ nokiatool.sh.new 2022-02-05 17:35:20.669270861 +0100
+@@ -6,2 +6,4 @@
+-MODEM='/dev/ttyUSB1' # Nokia opens two serial ports, we need the second one to send control commands
+-DRIVERINIT='modprobe usbserial vendor=0x0421 product=0x069a' # init Nokia usb2serial driver (not needed for some models if they are autodetected)
++if [ -z "${MODEM}" ]; then # The serial port to be used can be controlled by the command line; if not set, use a default:
++ read -e -i '/dev/ttyUSB1' -p 'Specify device to interact with (e.g. /dev/ttyUSB1): ' MODEM # Nokia opens two serial ports, we usually need the second one to send control commands
++fi
++# For not auto-recognised devices something like a manual `modprobe usbserial vendor=0x0421 product=0x069a` might be needed beforehand.
+@@ -505 +507 @@
+- $DRIVERINIT
++ # "${DRIVERINIT[@]}" # Here some initialisation commands could be placed.
+@@ -527 +529 @@
+- sudo bash -c "$CURSCRIPT $ARGS"
++ bash -c "$CURSCRIPT $ARGS"