Only assume the current runlevel if none specified
This commit is contained in:
parent
afdcf1fa15
commit
10edca8e0e
@ -241,15 +241,14 @@ int rc_update (int argc, char **argv)
|
|||||||
|
|
||||||
if (action & DOADD) {
|
if (action & DOADD) {
|
||||||
actfunc = add;
|
actfunc = add;
|
||||||
if (! runlevels)
|
|
||||||
rc_strlist_add (&runlevels, rc_runlevel_get ());
|
|
||||||
} else if (action & DODELETE) {
|
} else if (action & DODELETE) {
|
||||||
actfunc = delete;
|
actfunc = delete;
|
||||||
if (! runlevels)
|
|
||||||
runlevels = rc_runlevel_list ();
|
|
||||||
} else
|
} else
|
||||||
eerrorx ("%s: invalid action", applet);
|
eerrorx ("%s: invalid action", applet);
|
||||||
|
|
||||||
|
if (! runlevels)
|
||||||
|
rc_strlist_add (&runlevels, rc_runlevel_get ());
|
||||||
|
|
||||||
if (! runlevels)
|
if (! runlevels)
|
||||||
eerrorx ("%s: no runlevels found", applet);
|
eerrorx ("%s: no runlevels found", applet);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user