#! /bin/sh # This shell script changes both the SYSDBA user # and /etc/init.d/firebird script #------------------------------------------------------------------------ # Prompt for response, store result in Answer Answer="" AskQuestion() { Test=$1 DefaultAns=$2 echo -n "${1}" Answer="$DefaultAns" read Answer } #------------------------------------------------------------------------ # changeInitPassword changeInitPassword() { NewPasswd=$1 DBAPasswordFile=$FBRootDir/SYSDBA.password InitFile=/etc/rc.d/init.d/firebird if [ ! -f $InitFile ] then InitFile=/etc/init.d/firebird fi if [ -f $InitFile ] then echo "" echo Running ex to modify /etc/init.d/firebird ex $InitFile <