; install mv1440 by Jürgen Einrauch 26. Juli 1997      
failat 21

echo "  *n*e[1;32m  ___________________________________________________"
echo "  *e[43m                                                   *e[0m"
echo "  *e[0;28;43m               Install mv1440sup72          *e[1m       *e[0m"
echo "  *e[1;4;43m                                                   *e[0m*n"

echo "   *e[32mWarning. Read all information files first !*e[0m"
echo noline "*n   Install mv1440sup72 now ? (Ja/Nein yes/no): "
set > nil: Inp ?
IF $Inp eq "ja"
  skip start
endif
IF $Inp eq "j"
  skip start
endif
IF $Inp eq "y"
  skip start
endif
IF $Inp eq "yes"
  skip start
endif
echo noline "*n   Installation aborted."
EndCLI >NIL:
quit

lab start
IF NOT EXISTS SYS:mv1440sup72
skip warning
else
IF NOT EXISTS SYS:mv1440sup72/monitors
skip warning
else
IF NOT EXISTS SYS:mv1440sup72/sys
skip warning
else
skip warning2
endif

lab warning
echo "*n   You   m u s t   copy the file <mv1440sup72> to the"
echo "   WB partition of your harddisc! Installation aborted."
WAIT 5 secs
EndCLI >NIL:
quit

lab warning2
IF EXISTS SYS:monitorfiles_old
echo "*n   <mv1440sup72> still installed."
echo "   Installation aborted."
wait 3 secs
else
skip start2
wait 4 secs
endif
EndCLI >NIL:
quit

lab start2 
IF NOT EXISTS SYS:devs/monitors
skip break
else
endif
IF NOT EXISTS sys:prefs/env-archive/sys/overscan.prefs
skip break
endif
IF NOT EXISTS sys:prefs/env-archive/sys/screenmode.prefs
skip break
endif
IF NOT EXISTS SYS:storage/monitors
skip break
else
skip start3
endif

lab start3
echo "*n   Your old monitor configuration will be saved now"
echo "   in the new Workbench directory <monitorfiles_old>." 
wait 1 secs

makedir sys:monitorfiles_old
copy >nil:  from sys:devs/monitors to sys:monitorfiles_old/monitors
copy >nil: from sys:storage/monitors to sys:devs/monitors
makedir >nil: sys:monitorfiles_old/sys
copy >nil: from sys:prefs/env-archive/sys/overscan.prefs to sys:monitorfiles_old/sys
copy >nil: from sys:prefs/env-archive/sys/screenmode.prefs to sys:monitorfiles_old/sys

delete >nil: sys:devs/monitors/euro36
delete >nil: sys:devs/monitors/a2024
delete >nil: sys:devs/monitors/#?(.info)
delete >nil: sys:prefs/env-archive/sys/overscan.prefs
delete >nil: sys:prefs/env-archive/sys/screenmode.prefs

copy >nil: from sys:mv1440sup72/monitors to sys:devs/monitors
copy >nil: from sys:mv1440sup72/sys to sys:prefs/env-archive/sys
skip end

lab break
echo "*n   The install program doesn`t accepts the configuration"
echo "   of your system. Install all files manually!"
WAIT 6 secs
EndCLI >NIL:
quit

lab end
wait 3 secs
echo "*n   Installation finished."
echo "   Reset your computer to enable the new configuration."
echo "   New adjust and fix all windows."
wait 6 secs
EndCLI >NIL:
quit
