JB=$(ls -d /var/containers/Bundle/Application/.jbroot-* 2>/dev/null | head -1)
echo "id: $(id 2>&1 | head -c 120)"
echo "JB=$JB"
echo "--- jbroot tools ---"
ls "$JB/bin/sh" "$JB/usr/bin/uicache" "$JB/usr/bin/ldid" 2>&1 | head -4
echo "--- Sileo installed? ---"
find /var/containers/Bundle/Application -maxdepth 2 -iname 'Sileo.app' 2>/dev/null | head -2
echo "--- build 53 tarball on device? ---"
ls -la /rootfs/private/var/mobile/Media/gsm53.tar /rootfs/private/var/mobile/Media/drv53.bin /rootfs/private/var/mobile/Media/bi53.bin 2>&1 | head -4
echo "--- our app bundle ---"
find /var/containers/Bundle/Application -maxdepth 2 -name 'Driver.app' 2>/dev/null | head -2
ls -d "$JB/Applications/Driver.app" 2>/dev/null
echo "--- Driver binary size ---"
ls -la "$JB/Applications/Driver.app/Driver" 2>/dev/null | awk '{print $5}'
echo CHECKJB_DONE
