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
This commit is contained in:
Stefan Seyfried 2014-11-25 07:55:34 +00:00 committed by Git OBS Bridge
parent b31f727da6
commit b137e0142e
3 changed files with 39 additions and 0 deletions

View File

@ -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

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Nov 19 03:11:00 UTC 2014 - Led <ledest@gmail.com>
- 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 Thu Aug 21 12:15:41 UTC 2014 - max@suse.com

View File

@ -60,6 +60,7 @@ Patch8: ppp-2.4.6-ifname.diff
# Don't use __P from glibc (pppd uses it wrong) # Don't use __P from glibc (pppd uses it wrong)
Patch9: ppp-2.4.2-__P.diff Patch9: ppp-2.4.2-__P.diff
Patch10: ppp-2.4.3-pppoatm.diff Patch10: ppp-2.4.3-pppoatm.diff
Patch11: ppp-2.4.7-fix-bashisms.patch
Patch12: ppp-2.4.2-pie.patch Patch12: ppp-2.4.2-pie.patch
Patch14: ppp-2.4.3-fork-fix.diff Patch14: ppp-2.4.3-fork-fix.diff
Patch17: ppp-2.4.3-strip.diff Patch17: ppp-2.4.3-strip.diff
@ -97,6 +98,7 @@ plugins for the pppd.
%patch8 %patch8
%patch9 %patch9
%patch10 -p1 %patch10 -p1
%patch11 -p1
%patch12 -p1 %patch12 -p1
%patch14 %patch14
%patch17 %patch17