< code

Prompt for Config Change

RED='\E[31;01m'
OFF="\E[0m"

echo "Do you want to ${RED}DISABLE${OFF} this script?"
read yayornay

if [ ${yayornay} == "no" ] || [ ${yayornay == "n" ]; then
  echo "ok, good choice.."
fi

echo "/mnt/point/dir /mnt/src/dir none bind 0 0" >> /etc/fstab
mount -a

cp template.cnf local.cnf
config=/path/to/local.cnf

sed "s/@KEYWORD@/$key/g" $config >> $config.bak && mv $config.bak $config
 
code/bash/configpromp.txt · Last modified: 2008/12/22 10:12 by bw
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki