syslog-ng.inc: fix prerm script & class includes
syslog-ng.inc: fix prerm script & class includes

The order of class includes is very important because it's the order in
which classes are evaluated. Both update-rc.d and update-alternatives
write to the prerm script, so the class order decides the script code
ordering. As they are now, prerm is:

 #!/bin/sh
        update-alternatives --remove  syslog-init /etc/init.d/syslog.syslog-ng
if [ -z "$D" ]; then
        /etc/init.d/syslog stop
fi

This causes errors because when syslog-ng is the only alternative it is
removed and then the script tries to stop it (No such file or directory)
but even if there are other alternatives, the script tries to stop
something other than syslog-ng which was removed.

By reversing the include order, prerm gets generated correctly and it
tries to stop syslog-ng before removing it:

if [ -z "$D" ]; then
        /etc/init.d/syslog stop
fi
update-alternatives --remove  syslog-init /etc/init.d/syslog.syslog-ng

Signed-off-by: Ioan-Adrian Ratiu <7ec73abcfe099fc5574c01312b62768070c80980@ni.com>
Signed-off-by: Martin Jansa <516df3ff67e1fa5d153800b15fb204c0a1a389dc@gmail.com>

sigma-embedded/elito-org.openembedded.meta,openembedded/meta-openembedded,amery/meta-openembedded,lgirdk/meta-openembedded,victronenergy/meta-openembedded,fredcadete/meta-openembedded,rehsack/meta-openembedded,schnitzeltony/meta-openembedded,fredcadete/meta-openembedded,VCTLabs/meta-openembedded,victronenergy/meta-openembedded,fredcadete/meta-openembedded,amery/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,lgirdk/meta-openembedded,VCTLabs/meta-openembedded,schnitzeltony/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,schnitzeltony/meta-openembedded,moto-timo/meta-openembedded,amery/meta-openembedded,schnitzeltony/meta-openembedded,victronenergy/meta-openembedded,amery/meta-openembedded,fredcadete/meta-openembedded,VCTLabs/meta-openembedded,moto-timo/meta-openembedded,amery/meta-openembedded,kraj/meta-openembedded,amery/meta-openembedded,schnitzeltony/meta-openembedded,schnitzeltony/meta-openembedded,kraj/meta-openembedded,rehsack/meta-openembedded,moto-timo/meta-openembedded,rehsack/meta-openembedded,fredcadete/meta-openembedded,amery/meta-openembedded,rehsack/meta-openembedded,VCTLabs/meta-openembedded,moto-timo/meta-openembedded,VCTLabs/meta-openembedded,mrchapp/meta-openembedded,kraj/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,openembedded/meta-openembedded,mrchapp/meta-openembedded,lgirdk/meta-openembedded,victronenergy/meta-openembedded,kraj/meta-openembedded,rehsack/meta-openembedded,lgirdk/meta-openembedded,fredcadete/meta-openembedded,mrchapp/meta-openembedded,mrchapp/meta-openembedded,lgirdk/meta-openembedded,fredcadete/meta-openembedded,rehsack/meta-openembedded,kraj/meta-openembedded,lgirdk/meta-openembedded,amery/meta-openembedded,VCTLabs/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,VCTLabs/meta-openembedded,victronenergy/meta-openembedded,schnitzeltony/meta-openembedded,lgirdk/meta-openembedded,rehsack/meta-openembedded,mrchapp/meta-openembedded,openembedded/meta-openembedded,openembedded/meta-openembedded,openembedded/meta-openembedded,VCTLabs/meta-openembedded,mrchapp/meta-openembedded,kraj/meta-openembedded,victronenergy/meta-openembedded,openembedded/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,sigma-embedded/elito-org.openembedded.meta,mrchapp/meta-openembedded,kraj/meta-openembedded,moto-timo/meta-openembedded,victronenergy/meta-openembedded,fredcadete/meta-openembedded,openembedded/meta-openembedded,openembedded/meta-openembedded