forked from pool/systemd
Accepting request 174108 from home:chkpnt:branches:Base:System
Otherwise, an empty folder will produce an error: > for l in /etc/rc.d/rc4.d/*; do echo $l; done /etc/rc.d/rc4.d/* > systemd-sysv-convert --save iscsid /usr/sbin/systemd-sysv-convert: line 44: [: too many arguments /usr/sbin/systemd-sysv-convert: line 47: [: too many arguments (resubmit of request 173801) OBS-URL: https://build.opensuse.org/request/show/174108 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=374
This commit is contained in:
parent
8e233bafe7
commit
0ee91fe7f6
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 29 14:50:37 UTC 2013 - dschung@cs.uni-kl.de
|
||||||
|
|
||||||
|
- Fix systemd-sysv-convert, so empty runlevel folders don't lead
|
||||||
|
to "line 44: [: too many arguments"
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 26 16:37:28 CEST 2013 - fcrozat@suse.com
|
Fri Apr 26 16:37:28 CEST 2013 - fcrozat@suse.com
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ declare -i priority
|
|||||||
service=$1
|
service=$1
|
||||||
runlevel=$2
|
runlevel=$2
|
||||||
priority=-1
|
priority=-1
|
||||||
for l in /etc/rc.d/rc$runlevel.d/* ; do
|
for l in $(ls /etc/rc.d/rc$runlevel.d/) ; do
|
||||||
initscript=$(basename $l)
|
initscript=$(basename $l)
|
||||||
if [ ${initscript:0:1} != "S" -o ${initscript:3} != "$service" ]; then
|
if [ ${initscript:0:1} != "S" -o ${initscript:3} != "$service" ]; then
|
||||||
continue
|
continue
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 29 14:50:37 UTC 2013 - dschung@cs.uni-kl.de
|
||||||
|
|
||||||
|
- Fix systemd-sysv-convert, so empty runlevel folders don't lead
|
||||||
|
to "line 44: [: too many arguments"
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 26 16:37:28 CEST 2013 - fcrozat@suse.com
|
Fri Apr 26 16:37:28 CEST 2013 - fcrozat@suse.com
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user