I have 3 scripts that need to be run from the cd, I can run them separately but thought it would be easier to just call them from a single script.
When I run the script it just goes straight to reboot, which is the last command. Can you see what I am doing wrong? I am logged in as root when I execute it. Thanks
Code:
#!/bin/bash
clear
set +x
#calls script that installs the software packages
./cdrom/scripts/initialsetup.txt
#calls script that creates shared folders
./cdrom/scripts/makeshares.txt
#calls script that creates users
./cdrom/scripts/makeusers.txt
#unmounts cdrom
umount /cdrom
echo "Setup complete, issueing reboot command"
reboot