OpenPKG add boot scripts using symlinks and shell commands. This way is
discouraged under Debian. A tool is provided to do this, update-rc.d. The
most important benefit of using update-rc.d is get compatibility with the
other boot mechanism available, file-rc.
So if you are using file-rc Debian package you are in trouble. A simple
solution is get back to sysv-rc (old style boot mechanism) before install
and before remove OpenPKG, and then install file-rc again. Im a lazy user so
install/remove packages is not a good solution to me. Trying to get a more
"friendly" solution i made a simple patch against OpenPKG 2.4 source.
To install it you must get openpkg-2.4.0-2.4.0.src.sh from an OpenPKG
mirror, unpack it (just do sh openpkg-2.4.0-2.4.0.src.sh without any
arguments), then run patch -p1 < patch-debian31-fix1.diff (diff file is
attached).
Another little thing; OpenPKG start with service id 99, if you are using
bootlogd this means OpenPKG start after bootlogd, so OpenPKG output is not
logged. To fix this i change OpenPKG service id to 95, but only to Debian.
Best Regards.
blo.
PD:
This is my first post and i don't know if this list accepts text
attachments, if not and you want this patch, please drop me and email.
--
Pablo Castellazzi <[EMAIL PROTECTED]>
email: [EMAIL PROTECTED] | aim: PCastellazzi
jabber: [EMAIL PROTECTED] | yahoo: YPCastellazzi
msn: [EMAIL PROTECTED] | icq: 223020226
diff -Nurpb openpkg-2.4.0-2.4.0.src.orig/openpkg.spec
openpkg-2.4.0-2.4.0.src/openpkg.spec
--- openpkg-2.4.0-2.4.0.src.orig/openpkg.spec 2005-06-15 15:54:45.000000000
-0300
+++ openpkg-2.4.0-2.4.0.src/openpkg.spec 2005-07-05 22:14:32.000000000
-0300
@@ -1746,6 +1746,12 @@ Provides: openpkg = 20050615-2005061
echo "esac"
) >/
chmod 755 /
+ # debian 3.1 works better with this
+ # symlinks fail with file-rc
+ # 95 is beacause we need to start before bootlogd
stop (at 99)
+ if [ -f /etc/debian_version ]; then
+ update-rc.d defaults 95 0
+ else
# create corresponding symbolic links
for i in 2 3 4 5; do
ln -s / /S99
@@ -1755,6 +1761,7 @@ Provides: openpkg = 20050615-2005061
done
fi
fi
+ fi
;;
SunOS/5.* )
if [ ! -f /etc/init.d/ ]; then
@@ -2293,12 +2300,16 @@ Provides: openpkg = 20050615-2005061
fi
fi
rm -f / >/dev/null 2>&1
+ if [ -f /etc/debian_version ]; then
+ update-rc.d remove
+ else
for i in 2 3 4 5; do
rm -f /S99 >/dev/null 2>&1
done
for i in 0 1 6; do
rm -f /K00 >/dev/null 2>&1
done
+ fi
if [ -f /etc/slackware-version ]; then
for i in 0 1 2 3 4 5 6; do
l=