Thread Tools Search this Thread
Operating Systems Linux rc.local
# 1  
Old 12-06-2007

Hope someone can help, i have no knowledge of Linux but have aquired a script that i am trying to modify to run in an Altiris environment.

The script is a bash menu that runs via a linux pxe boot option.

when i run the script i get an error saying

syntax error near unexpected token 'done'

here is a section of the script


/bin/sh /etc/mounts.local
echo -e "\033[2q Num On Other Off"
while :
echo -e "\033[0m"
echo -e "\033[44mииииииииииииииииииииииииииииииии\033[0m"
echo -e "\033[44m \033[1m Hardware Independant Image Menu \033[0m"
echo -e "\033[44mииииииииииииииииииииииииииииииии\033[0m"
echo -e "\033[36m\033[1m 1 \033[0m Deploy Base Image"
echo -e "\033[36m\033[1m 2 \033[0m xxxxxxxxxxxxxxxxxxxx"
echo -e "\033[36m\033[1m 3 \033[0m xxxxxxxxxxxxxxxxxxxx"
echo -e "\033[36m\033[1m 4 \033[0m xxxxxxxxxxxxxxxxxxxx"
echo -e "\033[36m\033[1m 5 \033[0m xxxxxxxxxxxxxxxxxxxx"
echo -e "\033[36m\033[1m 6 \033[0m xxxxxxxxxxxxxxxxxxxx"
echo -e "\033[36m\033[1m 7 \033[0m xxxxxxxxxxxxxxxxxxxx"
echo -e "\033[36m\033[1m 8 \033[0m xxxxxxxxxxxxxxxxxxxx"
echo -e "\033[36m\033[1m X \033[0m Exit"
echo -e "\033[1mииииииииииииииииииииииииииииииии\033[0m"
echo -e "\033[31m"$message"\033[0m"
read -n1 -p "Enter your menu choice [1-8] :" choice
case "$choice" in
'1') message=
echo "Deploy Base Image"
echo -e "\033[32m\033[1mREMOVE DISK NOW! \033[0m"
#/mnt/ds/RDeploy/Linux/rdeployt -md -f/mnt/ds/Images/HIISYS.IMG
#mkdir /mnt/sda1
#mount /dev/sda1 /mnt/sda1
cd /mnt/ds/RDeploy/Linux
# ReplaceTokens ./sysprep/WinXP/ARH/UP/sysprep.inf ./temp/ARH/UP/%ID%.inf
# ReplaceTokens ./sysprep/WinXP/ARH/MP/sysprep.inf ./temp/ARH/MP/%ID%.inf
./firm delete "prod:/aclient.cfg" > /dev/tty1
# Set MODEL variable to product name
echo "$MODEL" - Copying Drivers > /dev/tty1
echo "$MODEL" - Copying Correct HAL > /dev/tty1
case "$MODEL" in
/mnt/ds/RDeploy/Linux/Firm Copy "/mnt/ds/temp/ARH/MP/%ID%.inf" "prod:/Sysprep/Sysprep.inf" > /dev/tty1
/mnt/ds/RDeploy/Linux/Firm -recurse Copy "/mnt/ds/Drivers/GX620" "prod:/drivers"

exit 0

# 2  
Old 12-06-2007
One case is not close. Try to add one more "esac" before that one which is included.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

Local DNS

I am trying to install a replacement mail server. On the old machine, nslookup example.com returns instead of its real ip of 207.139...... On the new machine, which I have presumably set up the same way; I compared the data in the gui dnsconfig on both machines, I get an error... (0 Replies)
Discussion started by: jgt
0 Replies

2. Shell Programming and Scripting

To run a local shell script in a remote machine by passing arguments to the local shell script

I need to run a local shell script on a remote machine. I am able to achieve that by executing the command > ssh -qtt user@host < test.sh However, when I try to pass arguments to test.sh it fails. Any pointers would be appreciated. (7 Replies)
Discussion started by: Sree10
7 Replies

3. UNIX for Dummies Questions & Answers

Local User

How to fetch only local user without duplication from /etc/passwd using scripting?? (4 Replies)
Discussion started by: AhmedLakadkutta
4 Replies

4. IP Networking

Local network?

I have two PCs, witch have Linux Ubuntu. I want to connect those computers by a local network, but I know right anything about the network. I have a modem (not router) and a router that i don't use. The desktop pc have 2 network cards. (eth0 eth1). The modem is on eth1. Anyone help me!... (4 Replies)
Discussion started by: mghis
4 Replies

5. AIX

Do I need to configure my local windows to FTP files from local windows to a UNIX AIX server?

Hi Friends, I have this script for ftping files from AIX server to local windows xp. #!/bin/sh HOST='localsystem.net' USER='myid_onlocal' PASSWD='mypwd_onlocal' FILE='file.txt' ##This is a file on server(AIX) ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies

6. UNIX for Dummies Questions & Answers

Local minima

I have a file with a single column of numbers. Starting from the 11th line, I'd like to find the line(s) on which the number meets two criteria: 1) it is less than the 10 numbers that precede it, 2) it is less than the number that follows it. So, for the following, the script should return line 18.... (2 Replies)
Discussion started by: darwin_886
2 Replies

7. UNIX for Dummies Questions & Answers

local user ip

how can i find my own ip address from unix. command like who -x .this would provide all the ip address but i need to list only current user ip address. who am i command does not display the ip. (1 Reply)
Discussion started by: naushad
1 Replies

8. IP Networking

local proxy

Are there any free local proxy for Linux which cache data and gzip transmitted packages? (5 Replies)
Discussion started by: Hitori
5 Replies

9. UNIX for Dummies Questions & Answers

local host

Dear Guys , Please again , i could not find a solution for my server linux red hat 9 . when i leave it about more than 5 min ideal it goes to something like sleep mode and all services stop and even TCP/IP .. what shall i do ??? another thing please , when i installed the server , i gave... (3 Replies)
Discussion started by: tamemi
3 Replies

10. UNIX for Dummies Questions & Answers

why i have local.profile, local.cshrc,local.login instead of .profile, .login ?

Hello again ! Thanks for response of my first question. there is my second quesiton why i have local.profile instead of .profile file ? my all files in pwd shoes local. before any file. is anybody can tell me about that ? Thanks Abid Malik (5 Replies)
Discussion started by: abidmalik
5 Replies
Login or Register to Ask a Question