diff options
| author | Florian Boor <florian.boor@kernelconcepts.de> | 2007-08-09 10:57:03 +0000 |
|---|---|---|
| committer | Florian Boor <florian.boor@kernelconcepts.de> | 2007-08-09 10:57:03 +0000 |
| commit | b9a30358ae133ede815cbf2c4b31ff1977035e30 (patch) | |
| tree | 48570a08176de392a718f1712e75379af2e270c1 /classes/update-rc.d.bbclass | |
| parent | 386d4732c8c4b60c60dc671e97d5a667ebb5e140 (diff) | |
| parent | 58259f5baa7ae15a19edbfb0eb52ecef22467e0f (diff) | |
merge of '09957ec14fdf3babf0d22d779c7264d24330e535'
and 'c03b12513a0d9faea02ff87386f5cb243f7ece3e'
Diffstat (limited to 'classes/update-rc.d.bbclass')
| -rw-r--r-- | classes/update-rc.d.bbclass | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/classes/update-rc.d.bbclass b/classes/update-rc.d.bbclass index 9821eec5b2..3051b7933f 100644 --- a/classes/update-rc.d.bbclass +++ b/classes/update-rc.d.bbclass @@ -7,17 +7,15 @@ INIT_D_DIR = "${sysconfdir}/init.d" updatercd_postinst() { if test "x$D" != "x"; then - D="-r $D" + OPT="-r $D" else - D="-s" + OPT="-s" fi -update-rc.d $D ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS} +update-rc.d $OPT ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS} } updatercd_prerm() { -if test "x$D" != "x"; then - D="-r $D" -else +if test "x$D" = "x"; then ${INIT_D_DIR}/${INITSCRIPT_NAME} stop fi } |
