diff options
Diffstat (limited to 'meta/recipes-extended/sysklogd/sysklogd.inc')
-rw-r--r-- | meta/recipes-extended/sysklogd/sysklogd.inc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/recipes-extended/sysklogd/sysklogd.inc b/meta/recipes-extended/sysklogd/sysklogd.inc index 0b84dace96..fb2ddb2013 100644 --- a/meta/recipes-extended/sysklogd/sysklogd.inc +++ b/meta/recipes-extended/sysklogd/sysklogd.inc | |||
@@ -46,12 +46,14 @@ do_install () { | |||
46 | pkg_preinst_${PN} () { | 46 | pkg_preinst_${PN} () { |
47 | # all this is needed to avoid sysmlink errors, | 47 | # all this is needed to avoid sysmlink errors, |
48 | # because update-rc.d runs before pkg_postinst | 48 | # because update-rc.d runs before pkg_postinst |
49 | if [ -e ${sysconfdir}/init.d/syslog -a ! -L ${sysconfdir}/init.d/syslog ]; then | 49 | ETC=$D${sysconfdir} |
50 | |||
51 | if [ -e $ETC/init.d/syslog -a ! -L $ETC/init.d/syslog ]; then | ||
50 | echo "WARNING:" "non symlink ${sysconfdir}/init.d/syslog exist -> backup to ${sysconfdir}/init.d/syslog.old" | 52 | echo "WARNING:" "non symlink ${sysconfdir}/init.d/syslog exist -> backup to ${sysconfdir}/init.d/syslog.old" |
51 | mv ${sysconfdir}/init.d/syslog ${sysconfdir}/init.d/syslog.old | 53 | mv $ETC/init.d/syslog $ETC/init.d/syslog.old |
52 | fi | 54 | fi |
53 | if [ ! -e ${sysconfdir}/init.d/syslog ]; then | 55 | if [ ! -e $ETC/init.d/syslog ]; then |
54 | ln -s dummy ${sysconfdir}/init.d/syslog | 56 | ln -s dummy $ETC/init.d/syslog |
55 | fi | 57 | fi |
56 | } | 58 | } |
57 | 59 | ||