1 XCOMM $XConsortium: install.dt.ibm.src /main/3 1996/04/21 19:06:56 drk $
2 XCOMM ==========================================================================
3 XCOMM ==========================================================================
6 XCOMM Platform specific function overrides for the April 1994 Snapshot
7 XCOMM install script, install.dt.
9 XCOMM This file is sourced by the install.dt script to allow platform
10 XCOMM specific behavior for certain functionality. These functions are:
12 XCOMM DtiClearScreen() - clear the screen
13 XCOMM DtiFreeSpace() - return available bytes in a directory
14 XCOMM DtiVerifyConfiguration() - verify system configuration
15 XCOMM DtiWhoami() - return user name
17 XCOMM ==========================================================================
18 XCOMM ==========================================================================
20 XCOMM DtiClearScreen() - clears the screen
22 XCOMM The default DtiClearScreen() uses the 'clear' command to clear the
23 XCOMM screen. If this platform does not have the 'clear' command,
24 XCOMM declare DtiClearScreen() here with the appropriate functionality.
26 XCOMM Note: The default DtiClearScreen() writes to stderr, rather than stdout,
27 XCOMM so be sure to do the same here. DtiPrint() does this automatically, so
28 XCOMM use it if possible.
32 XCOMM DtiClearScreen()
34 XCOMM DtiPrint "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
35 XCOMM DtiPrint "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
41 XCOMM ==========================================================================
43 XCOMM DtiClearScreen() {
47 XCOMM ==========================================================================
51 XCOMM The default DtiFreeSpace() does not check for free space, rather it
52 XCOMM simply returns a BigNumber that install.dt will assume is large
53 XCOMM enough in which to install the desktop.
55 XCOMM Declare DtiFreeSpace() here to return the actual available space for
56 XCOMM a particular directory.
58 XCOMM The $1 parameter will contain the directory name to test. The directory
59 XCOMM specified will exist. DtiFreeSpace() should return the number of bytes
60 XCOMM available via the DtiReturn() function.
63 XCOMM $1 - directory name
66 XCOMM number of bytes available
68 XCOMM ==========================================================================
72 dtspace=`df $1 | awk '
77 if($1 == "Filesystem") {
89 XCOMM ==========================================================================
91 XCOMM DtiVerifyConfiguration
93 XCOMM The default DtiVerifyConfiguration() does no system configuration
94 XCOMM testing. For a particular platform, one might want to test for
95 XCOMM the presence of X11R5 or the OS version, for example, before allowing
96 XCOMM the desktop to be installed.
98 XCOMM Declare this function to make such platform specific tests. Return
99 XCOMM "yes" if the system passed, or "<message text>" if the system failed
100 XCOMM in which case install.dt will display the <message text> as the reason.
105 XCOMM "yes" - system configuration verified
106 XCOMM "<message text>" - verification failed, display message text
108 XCOMM ==========================================================================
110 DtiVerifyConfiguration()
112 IsX11R5=`lslpp -h | awk '
118 if(($1 == "01.02.0003.0000") && ($2 == "COMPLETE")) {
131 DtiReturn "The Desktop requires that X11R5 be installed on your system.\n
132 0) Continue with Desktop Installation
133 99) Exit Desktop Installation
135 Please enter selection: "
140 XCOMM ==========================================================================
144 XCOMM The default DtiWhoami() uses the 'whoami' command to determine
145 XCOMM the user name. If this platform does not have the 'whoami' command,
146 XCOMM declare DtiWhoami() here with the appropriate functionality.
151 XCOMM result of system 'whoami' command
153 XCOMM ==========================================================================