[ltp] thinkpad 5.3 and tpctl 4.11 debs available

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


--=-RByx3wEQMeTFpYrSLGGr
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Tue, 2004-05-04 at 16:50, Thomas Hood wrote:
>     ./thinkpad-base.postinst configure

Oops, I sent the original script rather than my modified one.
Please apply the attached patch.

You can reply privately.  Once we've solved the problem I will
make an announcement.
-- 
Thomas Hood <jdthood2@yahoo.co.uk>

--=-RByx3wEQMeTFpYrSLGGr
Content-Disposition: attachment; filename=thinkpad-base.postinst_1.patch
Content-Type: text/x-patch; name=thinkpad-base.postinst_1.patch; charset=iso-8859-15
Content-Transfer-Encoding: 7bit

--- thinkpad-base.postinst	2004-04-30 17:13:07.000000000 +0200
+++ /tmp/thinkpad-base.postinst	2004-05-04 16:59:46.000000000 +0200
@@ -17,11 +17,12 @@
 		MAKEOUT="$(/sbin/MAKEDEV -v thinkpad)"
 		echo "$MAKEOUT" | {
 			read ACTION NODE REST
-			if [ "$ACTION" = "create" ] && [ "$NODE" ] ; then
-				chown root:thinkpad "$NODE"
+			if [ "$ACTION" = "create" ] && [ -c "$NODE" ] ; then
 				echo "Created device node /dev/$NODE owned by root:thinkpad."
 			fi
 		}
+		[ -c /dev/thinkpad ] && chown root:thinkpad /dev/thinkpad
+		[ -c /dev/thinkpad/thinkpad ] && chown root:thinkpad /dev/thinkpad/thinkpad
 	fi
 	;;
 # abort-upgrade|abort-remove|abort-deconfigure)

--=-RByx3wEQMeTFpYrSLGGr--