[ltp] thinkpad 5.3 and tpctl 4.11 debs available

Thomas Hood linux-thinkpad@linux-thinkpad.org
Tue, 04 May 2004 16:50:20 +0200


--=-8WB3UxkTevkZmx46b6Fw
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: quoted-printable

On Tue, 2004-05-04 at 15:53, Didrik Pinte wrote:
> Param=E9trage de thinkpad-base (5.4-1) ...
> Group thinkpad does already exist as a system group. Exiting...
> chown: =E9chec d'obtention des attributs de `thinkpad/thinkpad': Aucun
> fichier ou r=E9pertoire de ce type
> dpkg : erreur de traitement de thinkpad-base (--configure) :

The postinst is failing.  Do you use udev?

If not then I guess there is a bug in the postinst.  I attach
a modified postinst.  Please save it in some directory then cd to
that directory and do (as root):

    ./thinkpad-base.postinst configure

Hopefully it will work.  If it doesn't, maybe you will have some
idea of what is going wrong?
--=20
Thomas Hood <jdthood2@yahoo.co.uk>

--=-8WB3UxkTevkZmx46b6Fw
Content-Disposition: attachment; filename=thinkpad-base.postinst
Content-Type: text/x-sh; name=thinkpad-base.postinst; charset=iso-8859-15
Content-Transfer-Encoding: 7bit

#!/bin/sh
set -e

#DEBHELPER#

case "${1}" in
configure|reconfigure)
	addgroup --system thinkpad 2>/dev/null || true
	if [ -e /dev/.devfsd ]; then
		# devfs enabled
		update-devfsd > /dev/null 2>&1 || true
	else
		# devfs not enabled
		cd /dev
		[ -c thinkpad ] && rm -f thinkpad
		[ -c smapi ] && rm -f smapi
		MAKEOUT="$(/sbin/MAKEDEV -v thinkpad)"
		echo "$MAKEOUT" | {
			read ACTION NODE REST
			if [ "$ACTION" = "create" ] && [ "$NODE" ] ; then
				chown root:thinkpad "$NODE"
				echo "Created device node /dev/$NODE owned by root:thinkpad."
			fi
		}
	fi
	;;
# abort-upgrade|abort-remove|abort-deconfigure)
	# Do nothing
*)
	echo "postinst called with unknown argument \`$1'" >&2
	exit 1
	;;
esac


--=-8WB3UxkTevkZmx46b6Fw--