From 4495fda0ab1d48800c6101ec635bafb70ebd07f1 Mon Sep 17 00:00:00 2001 From: kergoth Date: Fri, 24 Jan 2003 05:48:05 +0000 Subject: Correct a minor bug.. now it uses -e instead of -x to check for the pre/post scripts, and chmod 755's them after cp'ing, in case the permissions are hosed. --- diff --git a/mkipks b/mkipks index 4685f5f..ffa4ef5 100755 --- a/mkipks +++ b/mkipks @@ -216,9 +216,10 @@ do scripts="preinst postinst prerm postrm" for pf in $scripts do - if [ -x ${base}.$pf ] + if [ -e ${base}.$pf ] then cp ${base}.$pf $CTRLDIR/$pf + chmod 755 $CTRLDIR/$pf fi done cd $ORIGDIR; $OPIEDIR/scripts/ipkg-build $classicopts -o root -g root $TDIR; cd $OPIEDIR; -- cgit v0.9.0.2