source: install/copyinstallerask.sh @ 26ffad7

Last change on this file since 26ffad7 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 805 bytes
Line 
1#!/bin/bash
2#(C)DatuX 2005 - all rights reserved
3.       dialoglib.sh || exit 1
4
5CDROOT=$1
6[ "$CDROOT" ] || exit 1
7
8
9TITLE="`_CopyInstaller`"
10
11DISCS=`unuseddisks`
12if ! [ "$DISCS" ]; then
13    msgbox "`_NoDisksFoundInsertDiskFirst`"
14    exit 1
15fi
16
17QUERY=`_SelectDiscToCopyInstallerOn`
18for DISC in $DISCS; do
19        #get extra info for use to regonize disc
20        SELECT="$SELECT $DISC '`getdiskinfo $DISC`'";
21done
22DISC=
23while ! [ "$DISC" ]; do
24        DISC=`menu $SELECT` || exit 1
25done
26
27########## confirmation for discs
28QUERY="`_WarningDisksWillBeErased`
29
30`echo $DISC|sed 's/ /\n/g'`
31
32`_DoYouWantToContinue`
33"
34QUERY="`quote "$QUERY"`";
35if ! nextcancel $QUERY; then
36    exit 1
37fi;
38
39progress "`_CopyingInstaller`"
40
41if execute sh copyinstaller.sh $CDROOT $DISC; then
42    msgbox "`_CopySucceeded`"
43else
44    msgbox "`_CopyFailed`"
45fi
46
Note: See TracBrowser for help on using the repository browser.