Bash scripts


What is BASH

BASH Reference Manual

Check you are root before running a script that needs root Check permissions on scripts you may need to make them executable using chmod e.g chmod +x If you are UNSURE ask on irc or something.

if [ "$(id -u)" != "0" ]; then
echo This script must be run as root;1
exit 1

create iso file from cd image

cdrom / dvd disk to iso file
dd if=/dev/cdrom of=/tmp/cdimg1.iso

use mtab to find out the exact device reference to the cd device you are copying and
make sure the destination is where you want it e.g /home/user