Solaris: a simple script does not work, single command does
- by CSG
In my Solaris Illumos, I run a simple script:
update_drv -a -i '[myhardware]' [driver]
svcadm disable stmf
svccfg import /mypath/myconfig
svcadm enable stmf
It does not work and gives me no error. The service stmf goes in maintenance mode and I must reboot!
I've discovered that if I run the single commands from console, it works but if I put it into a script, it works only the first line.
Can you explain this behavior?