Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 14396 Details for
Bug 24317
[PATCH] enhancement + corner case bugfix for rc-update
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
rc-update patch
rc-update.diff (text/plain), 1.22 KB, created by
Antonio Dolcetta
on 2003-07-11 16:19:34 UTC
(
hide
)
Description:
rc-update patch
Filename:
MIME Type:
Creator:
Antonio Dolcetta
Created:
2003-07-11 16:19:34 UTC
Size:
1.22 KB
patch
obsolete
>--- /sbin/rc-update.orig 2003-06-04 12:20:28.000000000 +0200 >+++ /sbin/rc-update 2003-07-11 01:16:46.000000000 +0200 >@@ -37,18 +37,10 @@ > exit 1 > } > >-if [ $# -lt 1 ] >-then >- usage >-fi >- >-regen=0 >- >-if [ "$1" = "add" ] >-then >+add () { > if [ $# -lt 3 ] > then >- eerror "${0}: at least two arguments expected after \"add\"." >+ eerror "${0}: at least two arguments expected after \"$1\"." > exit 1 > fi > shift >@@ -79,17 +71,18 @@ > ln -snf /etc/init.d/${myscript} /etc/runlevels/${x}/${myscript} > if [ "$?" -ne 0 ] > then >- eerror "$0: failed to add $1 to ${x}." >+ eerror "$0: failed to add ${myscript} to ${x}." > exit 1 > fi > regen=1 > einfo "${myscript} added to runlevel ${x}" > done >-elif [ "$1" = "del" ] >-then >+} >+ >+del () { > if [ $# -lt 2 ] > then >- eerror "$0: at least one argument expected after \"del\"." >+ eerror "$0: at least one argument expected after \"$1\"." > exit 1 > fi > shift >@@ -117,11 +110,29 @@ > else > einfo "${myscript} removed from the following runlevels:${remlevels}" > fi >-else >+} >+ >+if [ $# -lt 1 ] >+then > usage > exit 1 > fi > >+regen=0 >+ >+case "$1" in >+ add|-a) >+ add "$@" >+ ;; >+ del|delete|-d) >+ del "$@" >+ ;; >+ *) >+ usage >+ exit 1 >+ ;; >+esac >+ > if [ "${regen}" -eq 1 ] > then > /sbin/depscan.sh
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 24317
: 14396