5 test "$1" = "-t" ||
exec Terminal
-t "My Update" "$0" -t "$@" && shift
8 notify
--type information \
9 --icon /boot
/system
/apps
/HaikuDepot \
15 if [ "$1" != "-2" ]; then
17 notice
"Closing Deskbar..."
18 notice
"Checking for updates..."
19 quit application
/x-vnd.Be-TSKB
21 hrev_current
="$(uname -v | cut -d' ' -f1)"
25 if [ $pkgman_err -gt 0 -o "$(ls /system/packages/*_hrev*-* | grep -v $hrev_current)" = "" ]; then
26 open
/system
/Deskbar
< /dev
/null
> /dev
/null
2>&1 &
27 notice
"Restarting Deskbar..."
28 #notice "Nothing to do"
29 read -p "Press a key..."
34 notice
"Restarting Deskbar..."
35 /system
/Deskbar
< /dev
/null
> /dev
/null
2>&1 &
36 notice
"You should reboot now..."
43 rm $
(finddir B_USER_SETTINGS_DIRECTORY
)/boot
/launch
/myupdate2.sh