#!/bin/sh yes () { \ while [ 0 ];do \ echo -n "Yes (y) or no (n): "; \ read answer; \ if [ -z $answer ];then answer="x";fi; \ if [ $answer = "y" -o $answer = "Y" -o $answer = "yes" ]; \ then return 0; \ else if [ $answer = "n" -o $answer = "N" -o $answer = "no" ]; \ then return 1;fi;fi; \ done } fixdirs () { \ owner=$1;group=$2;perms=$3;shift 3; \ for i in $*;do \ if [ ! -d ${i} ];then /mnt/bin/rm -rf ${i};/mnt/bin/mkdir ${i};fi; \ /mnt/bin/chown ${owner} ${i}; \ /mnt/bin/chgrp ${group} ${i}; \ /mnt/bin/chmod ${perms} ${i}; \ done } makeold () { \ for i in $*;do \ if [ -f ${i} ]; \ then /mnt/bin/mv ${i} ${i}.old; \ else /mnt/bin/rm -rf ${i}; \ fi; \ done } /mnt/bin/cat <