#!/bin/sh

#cp ../deb/wm2_4-7_i386.deb thinclient
#apt-get update
#apt-get install wm2 -d
#deb=`ls /var/cache/apt/archives/wm2*`
#cp $deb thinclient
lineno=`wc -l thinclient/thinclient | sed -e 's/thinclient\/thinclient//g'`
lineno=`expr $lineno + 1`
eval "sed -e 's/\${LINENO}/$lineno/' thinclient/thinclient > drbl-thinclient"
#zip thinclient.zip thinclient/wm2_4-7_i386.deb
#zip thinclient.zip thinclient/wm2*.deb
zip -r thinclient.zip thinclient/kiosk
cat thinclient.zip  >> drbl-thinclient
chmod 755 drbl-thinclient
#rm -f thinclient/wm2_4-7_i386.deb
#rm -f thinclient/wm2*.deb
rm -f thinclient.zip
