#!/bin/sh

cd `dirname $0`

DIR=`pwd`

if alert "This will install a patched version of WON for BONE.
You will be asked for infos to connect to the server.
Fill them in, then click Ok, and Restart" "Cancel" "OK"; then
exit 1;
fi

cd /boot

if [ ! -f "$DIR/old_cifs.zip" ]; then
zip "$DIR/old_cifs.zip" beos/system/servers/da_hood beos/system/add-ons/Tracker/CIFS_Refresh-R 
fi
rm -f beos/system/servers/da_hood
#unzip -o "$DIR/cifs.zip"

"$DIR/WONSetup"

#if [ -z "`grep da_hood /boot/home/config/boot/UserBootscript`" ]; then
#echo "Adding da_hood to UserBootscript..."
#echo "# WON patch for BONE by mmu_man" >>/boot/home/config/boot/UserBootscript
#echo "/boot/beos/system/servers/WON/da_hood &" >>/boot/home/config/boot/UserBootscript
#fi

#alert "Starting WON..."
# restart

#beos/system/servers/WON/da_hood &





