Commit db19dd92 authored by Per Olofsson's avatar Per Olofsson

Remove init script. Driver module should be loaded by udev or

/etc/modules. Add note to NEWS.Debian.
parent 7efbed6f
pcmciautils (018-1) unstable; urgency=low
/etc/init.d/pcmciautils is now gone and pcmciautils will no longer
load any driver modules.
If you need to load a driver module which is not automatically loaded
(e.g. i82365 if you lack PNP), then please add it to /etc/modules.
-- Per Olofsson <pelle@debian.org> Mon, 25 Apr 2011 21:40:14 +0200
......@@ -12,6 +12,8 @@ pcmciautils (018-1) UNRELEASED; urgency=low
- Drop unnecessary-linkage.patch, applied upstream.
* Remove obsolete README.Debian.
* Bump Standards-Version to 3.9.2. No changes.
* Remove init script. Driver module should be loaded by udev or
/etc/modules. Add note to NEWS.Debian.
-- Per Olofsson <pelle@debian.org> Mon, 25 Apr 2011 12:06:11 +0200
......
# This causes the init script to try i82365 if no other bridge module is
# loaded, which is a reasonably good fallback for ISA systems.
PCIC=i82365
......@@ -4,6 +4,8 @@ set -e
if dpkg-maintscript-helper supports rm_conffile; then
dpkg-maintscript-helper rm_conffile \
/etc/udev/pcmcia.rules 015-1+b100 -- "$@"
dpkg-maintscript-helper rm_conffile \
/etc/init.d/pcmciautils 015-1+b100 -- "$@"
fi
case $1 in
......@@ -13,17 +15,13 @@ case $1 in
rm /etc/udev/rules.d/85-pcmcia.rules
fi
if dpkg --compare-versions "$2" le 015-1+b100; then
update-rc.d pcmciautils remove >/dev/null
fi
if [ ! -f /etc/pcmcia/config.opts ]; then
cp -a /usr/lib/pcmciautils/config.opts /etc/pcmcia/
fi
# Remove shutdown and reboot links;
# this init script does not need them.
if dpkg --compare-versions "$2" lt 014-2; then
rm -f /etc/rc0.d/K88pcmciautils \
/etc/rc6.d/K88pcmciautils
fi
;;
esac
#DEBHELPER#
......
......@@ -4,6 +4,8 @@ set -e
if dpkg-maintscript-helper supports rm_conffile; then
dpkg-maintscript-helper rm_conffile \
/etc/udev/pcmcia.rules 015-1+b100 -- "$@"
dpkg-maintscript-helper rm_conffile \
/etc/init.d/pcmciautils 015-1+b100 -- "$@"
fi
case $1 in
......@@ -12,6 +14,7 @@ case $1 in
rm -f /etc/udev/rules.d/60-pcmcia.rules
rm -f /etc/pcmcia/config.opts /etc/pcmcia/config.opts~
rmdir /etc/pcmcia || true
update-rc.d pcmciautils remove >/dev/null
;;
esac
......
......@@ -4,17 +4,12 @@ set -e
if dpkg-maintscript-helper supports rm_conffile; then
dpkg-maintscript-helper rm_conffile \
/etc/udev/pcmcia.rules 015-1+b100 -- "$@"
dpkg-maintscript-helper rm_conffile \
/etc/init.d/pcmciautils 015-1+b100 -- "$@"
fi
case $1 in
install|upgrade)
if [ -z "$2" ] || \
dpkg --compare-versions "$2" lt 010-0ubuntu5; then
if [ -f /etc/default/pcmcia ]; then
cp -a /etc/default/pcmcia \
/etc/default/pcmciautils
fi
fi
# clean up old symlink mistake
if dpkg --compare-versions "$2" lt 012-1; then
rm -f /etc/udev/85-pcmcia.rules
......
......@@ -17,13 +17,6 @@ override_dh_auto_install:
$(MAKE) install-tools install-udev install-config \
install-socket-tools UDEV=true DESTDIR=$(tmp_udeb) V=true
override_dh_installinit:
dh_installinit -ppcmciautils -r --no-start -- \
start 40 S .
cp -a $(tmp)/etc/init.d/pcmciautils $(tmp_udeb)/etc/init.d/pcmciautils
# install /etc/default file as well
dh_installinit -ppcmciautils-udeb --name=pcmciautils
# You only need to run this immediately after checking out the package from
# revision control.
quilt-setup:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment