ProLiant Deployment and Provisioning
1753844 Members
7283 Online
108806 Solutions
New Discussion

SSTK Script with Command Parameters

 
jt123
Occasional Contributor

SSTK Script with Command Parameters

I'm trying to create an option in syslinux.cfg that will allow me to run a script with parameters. 

 

Example:

label teste

MENU LABEL testing
kernel vmlinuz
append initrd=initrd.img media=usb ... sstk_script="test.sh par1 par2"

 

When I run it, it says cannot find mnt/main/"test.sh par1 par2" 

it looks like it's taking the quotes and using them when executing. If i were to use test.sh without quotes (leaving off par1 & par2) the script will run fine. 

 

As a reference, here is what I found in the STK 10.00 Linux User Guide:

"The bootstrap script included with the Toolkit performs the following commands:
mount -t $sstk_mount_type $sstk_mount /mnt/main -o $sstk_mount_options
exec /mnt/main/$sstk_script"

 

Anyway to get this script to run with parameters?

 

Thanks!

 

-jt