Startup Script

Apr 1, 2008 at 5:08 AM
Edited Apr 1, 2008 at 5:09 AM
I'm trying to run ipconfig in my startup script, but it doesn't work. I get the message "unable to set all endpoints for this process". Followed by the "Welcome to singularity". If I type in the command at the prompt it works fine. Should this be working?

Here's the startup script:
echo 'DHCP config:'
ipconfig '@dhcp' '/dev/nic0' 'start'

echo 'Welcome to Singularity'
Coordinator
Apr 3, 2008 at 1:11 AM
Edited Apr 3, 2008 at 1:17 AM
1) be sure you use something like notepad and put a real 'enter' at the end of the line (not keypad enter or shift-enter or...)
2) make sure your editor isn't putting in directional quotes
3) try putting an extra blank line between commands
4) the last command MUST have a cr-lf after it (blank line at the end) or you'll get an unexpected EOF

i was able to reproduce your problem SOMETIMES by putting commands in the line right after the #comment block (scarey)
# net '@mount' '/distro' '\\192.168.0.12\distro'
ipconfig '@dhcp' '/dev/nic0' 'start'
echo 'Welcome to Singularity'

but other times it would start just fine. it's possible ipconfig has timing issues and needs a retry loop.

i was definitely able to get DHCP started using ipconfig in startup.script.