[oe] [PATCH] busybox/syslogs: use update-alternatives for syslog selection

Martin Jansa martin.jansa at gmail.com
Mon May 10 08:30:31 UTC 2010


On Fri, May 07, 2010 at 05:04:27PM +0200, Steffen Sledz wrote:
> > Configuring busybox-syslog.
> > update-rc.d: /etc/init.d/syslog: file does not exist
> > update-alternatives: Linking //etc/init.d/syslog to syslog.busybox
> 
> Are you sure that you run the patched version? It looks like
> running a version without touch in pkg_preinst.

Yes I'm sure.

Both reported problems are the same with PATCHv2.
Not sure why now I see also Permission denied (but maybe it was the same with PATCHv1).


SHR root at gojama ~ $ opkg remove busybox-syslog
Removing package busybox-syslog from root...
update-alternatives: removing //etc/init.d/syslog as no more alternatives exist for it
//usr/lib/opkg/info/busybox-syslog.prerm: line 6: /etc/init.d/syslog: Permission denied
Collected errors:
 * pkg_run_script: prerm script returned status 126.
SHR root at gojama ~ $ opkg install busybox-syslog
Installing busybox-syslog (1.15.3-r28.1.4) to root...
Downloading http://jama.homelinux.org/org.openembedded.shr/armv4t/busybox-syslog_1.15.3-r28.1.4_armv4t.ipk.
Configuring busybox-syslog.
 System startup links for /etc/init.d/syslog already exist.
/usr/sbin/update-rc.d: line 237: /etc/rc5.d/S20syslog: Permission denied
update-alternatives: Error: not linking //etc/init.d/syslog to syslog.busybox since //etc/init.d/syslog exists and is not a link
Collected errors:
 * pkg_run_script: postinst script returned status 1.
 * opkg_configure: busybox-syslog.postinst returned 1.

> 
> > ...
> >> -INITSCRIPT_NAME = "sysklogd"
> >> -INITSCRIPT_PARAMS = "start 39 S 1 2 3 . stop 99 0 6 ."
> > 
> > params not needed anymore?
> 
> Fall back to the defaults like in all the other syslog recipes.

OK.

-- 
uin:136542059                jid:Martin.Jansa at gmail.com
Jansa Martin                 sip:jamasip at voip.wengo.fr 
JaMa                         




More information about the Openembedded-devel mailing list