From b137e0142ebe3f44b5abbcfa2ad0b1fdbda4153d61c294ab4461dcc2c5d5aace Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Tue, 25 Nov 2014 07:55:34 +0000 Subject: [PATCH] Accepting request 262262 from home:Ledest:bashisms fix bashisms in redialer script OBS-URL: https://build.opensuse.org/request/show/262262 OBS-URL: https://build.opensuse.org/package/show/network/ppp?expand=0&rev=28 --- ppp-2.4.7-fix-bashisms.patch | 30 ++++++++++++++++++++++++++++++ ppp.changes | 7 +++++++ ppp.spec | 2 ++ 3 files changed, 39 insertions(+) create mode 100644 ppp-2.4.7-fix-bashisms.patch diff --git a/ppp-2.4.7-fix-bashisms.patch b/ppp-2.4.7-fix-bashisms.patch new file mode 100644 index 0000000..03d847f --- /dev/null +++ b/ppp-2.4.7-fix-bashisms.patch @@ -0,0 +1,30 @@ +diff -Ndur ppp-2.4.7/scripts/redialer ppp-2.4.7-fix-bashisms/scripts/redialer +--- ppp-2.4.7/scripts/redialer 2014-08-09 15:31:39.000000000 +0300 ++++ ppp-2.4.7-fix-bashisms/scripts/redialer 2014-11-19 05:09:46.168864978 +0200 +@@ -31,7 +31,7 @@ + # Function to initialize the modem and ensure that it is in command + # state. This may not be needed, but it doesn't hurt. + # +-function initialize ++initialize() + { + chat -v TIMEOUT 3 '' AT 'OK-+++\c-OK' + return +@@ -41,7 +41,7 @@ + # + # Script to dial a telephone + # +-function callnumber ++callnumber() + { + chat -v \ + ABORT '\nBUSY\r' \ +@@ -66,7 +66,7 @@ + # + # Script to dial any telephone number + # +-function callall ++callall() + { + # echo "dialing attempt number: $1" >/dev/console + callnumber $PHONE1 diff --git a/ppp.changes b/ppp.changes index c6fd7ea..768e4b1 100644 --- a/ppp.changes +++ b/ppp.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Nov 19 03:11:00 UTC 2014 - Led + +- fix bashisms in redialer script +- add patches: + * ppp-2.4.7-fix-bashisms.patch + ------------------------------------------------------------------- Thu Aug 21 12:15:41 UTC 2014 - max@suse.com diff --git a/ppp.spec b/ppp.spec index 2d852ae..80ae168 100644 --- a/ppp.spec +++ b/ppp.spec @@ -60,6 +60,7 @@ Patch8: ppp-2.4.6-ifname.diff # Don't use __P from glibc (pppd uses it wrong) Patch9: ppp-2.4.2-__P.diff Patch10: ppp-2.4.3-pppoatm.diff +Patch11: ppp-2.4.7-fix-bashisms.patch Patch12: ppp-2.4.2-pie.patch Patch14: ppp-2.4.3-fork-fix.diff Patch17: ppp-2.4.3-strip.diff @@ -97,6 +98,7 @@ plugins for the pppd. %patch8 %patch9 %patch10 -p1 +%patch11 -p1 %patch12 -p1 %patch14 %patch17