📄 install
字号:
#!/bin/sh /bin/echo /bin/echo /bin/echo "Tornado 2.2 Patch Installation" /bin/echoif [ "$WIND_BASE" = "" ]then /bin/echo "Please enter the directory of your Tornado 2.2 installation." read WIND_BASE WIND_BASE=$WIND_BASE export WIND_BASEelse /bin/echo "Your WIND_BASE environment variable is set to \"$WIND_BASE\"." /bin/echo "Do you want to install this patch in that tree(y/n)?" read answer if [ "$answer" = "n" ] then /bin/echo "Please enter the directory of your Tornado 2.2 installation " /bin/echo "where you would like to install this patch: " read WIND_BASE WIND_BASE=$WIND_BASE export WIND_BASE /bin/echo fi fiwhile [ ! -d "$WIND_BASE/SETUP" ]do /bin/echo "Error: The directory \"$WIND_BASE\" does not exist or is" /bin/echo "not a valid Tornado 2.2 installation." /bin/echo "Please enter the directory of your Tornado 2.2 installation." read WIND_BASE WIND_BASE=$WIND_BASE export WIND_BASEdonePATCHDIR=`/bin/dirname $0` if [ -f "$WIND_BASE/SETUP/DISK_ID" ]then /bin/chmod u+w $WIND_BASE/SETUP/DISK_IDfi/bin/cp $PATCHDIR/DISK_ID $WIND_BASE/SETUP/DISK_IDif [ -f "$WIND_BASE/SETUP/SETUP" ]then /bin/chmod u+w $WIND_BASE/SETUP/SETUPfi/bin/cp $PATCHDIR/SUN4/SOLARIS2/SETUP $WIND_BASE/SETUP/SETUPif [ -f "$PATCHDIR/README.TXT" ]then if [ -f "$WIND_BASE/SETUP/README.TXT" ] then /bin/chmod u+w $WIND_BASE/SETUP/README.TXT fi /bin/cp $WIND_BASE/SETUP/README.TXT $WIND_BASE/SETUP/README.TXT.BAK /bin/cp $PATCHDIR/README.TXT $WIND_BASE/SETUP/README.TXTfiif [ -f "$PATCHDIR/LICENSE.TXT" ]then if [ -f "$WIND_BASE/SETUP/LICENSE.TXT" ] then /bin/chmod u+w $WIND_BASE/SETUP/LICENSE.TXT fi /bin/cp $WIND_BASE/SETUP/LICENSE.TXT $WIND_BASE/SETUP/LICENSE.TXT.BAK /bin/cp $PATCHDIR/LICENSE.TXT $WIND_BASE/SETUP/LICENSE.TXTfi/bin/rm -f $WIND_BASE/SETUP/WIND/*/bin/cp $PATCHDIR/WIND/* $WIND_BASE/SETUP/WIND/bin/chmod u+w $WIND_BASE/SETUP/RESOURCE/TCL/*.TCL/bin/cp $WIND_BASE/SETUP/RESOURCE/TCL/CONFIG.TCL $WIND_BASE/SETUP/RESOURCE/TCL/CONFIG_BACK.TCL/bin/cp $PATCHDIR/RESOURCE/TCL/*.TCL $WIND_BASE/SETUP/RESOURCE/TCLtrap exitSetup 0 1 15trap "" 2$WIND_BASE/SETUP/SETUP####################################################################### incase the user exits SETUP abnormally## Restore CONFIG.TCL and delete DISK_ID for Setup license management# help screens to work properly. exitSetup() { if [ -f "$WIND_BASE/SETUP/RESOURCE/TCL/CONFIG_BACK.TCL" ] then /bin/chmod 775 $WIND_BASE/SETUP/RESOURCE/TCL/CONFIG.TCL /bin/rm $WIND_BASE/SETUP/RESOURCE/TCL/CONFIG.TCL /bin/mv $WIND_BASE/SETUP/RESOURCE/TCL/CONFIG_BACK.TCL $WIND_BASE/SETUP/RESOURCE/TCL/CONFIG.TCL fi if [ -f "$WIND_BASE/SETUP/DISK_ID" ] then /bin/chmod 775 $WIND_BASE/SETUP/DISK_ID /bin/rm $WIND_BASE/SETUP/DISK_ID fi if [ -f "$WIND_BASE/SETUP/README.TXT.BAK" ] then /bin/chmod 775 $WIND_BASE/SETUP/README.TXT /bin/rm $WIND_BASE/SETUP/README.TXT /bin/mv $WIND_BASE/SETUP/README.TXT.BAK $WIND_BASE/SETUP/README.TXT fi if [ -f "$WIND_BASE/SETUP/LICENSE.TXT.BAK" ] then /bin/chmod 775 $WIND_BASE/SETUP/LICENSE.TXT /bin/rm $WIND_BASE/SETUP/LICENSE.TXT /bin/mv $WIND_BASE/SETUP/LICENSE.TXT.BAK $WIND_BASE/SETUP/LICENSE.TXT fi if [ -f "$WIND_BASE/SETUP/RESOURCE/TCL/CONFIG_BACK.TCL" ] then /bin/chmod 775 $WIND_BASE/SETUP/RESOURCE/TCL/CONFIG.TCL /bin/rm $WIND_BASE/SETUP/RESOURCE/TCL/CONFIG.TCL /bin/mv $WIND_BASE/SETUP/RESOURCE/TCL/CONFIG_BACK.TCL $WIND_BASE/SETUP/RESOURCE/TCL/CONFIG.TCL fi # clean up WIND files /bin/rm -f $WIND_BASE/SETUP/WIND/*}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -