#!/bin/sh -


if [ -f '/etc/profile' ]; then
	. /etc/profile
	_root=''
elif [ -f '/var/jb/etc/profile' ]; then
	. /var/jb/etc/profile
	_root='/var/jb'
else
	echo 'Where the fuck "profile"?' 1>&2
	exit 1
fi
for _app in "${_root}/Applications/"* ; do
	uicache -p "${_app}" &
done
wait
launchctl unload "${_root}/Library/LaunchDaemons/com.nan.jbir.plist"
exit 0
