Last change
on this file since 1454 was 1436, checked in by Bruno Cornec, 12 years ago |
- Upload the 0.9.6 version of the PUSK (ProLiant USB Setup Key)
|
-
Property svn:executable
set to
*
|
File size:
570 bytes
|
Rev | Line | |
---|
[1436] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | #set -m
|
---|
| 4 | echo "Starting rc.local script"
|
---|
| 5 |
|
---|
| 6 | . /etc/init.d/functions
|
---|
| 7 | . /ssstk/ssstk-functions
|
---|
| 8 |
|
---|
| 9 | cmdline=$(cat /proc/cmdline)
|
---|
| 10 |
|
---|
| 11 | if strstr "$cmdline" "deploy"; then
|
---|
| 12 | deploy.sh 2>&1 | tee /tmp/ssstk_deploy.log
|
---|
| 13 | elif strstr "$cmdline" "capture"; then
|
---|
| 14 | capture.sh 2>&1 | tee /tmp/ssstk_capture.log
|
---|
| 15 | elif strstr "$cmdline" "ilo"; then
|
---|
| 16 | ilo.sh 2>&1 | tee /tmp/ssstk_ilo.log
|
---|
| 17 | elif strstr "$cmdline" "fw"; then
|
---|
| 18 | fw.sh 2>&1 | tee /tmp/ssstk_fw.log
|
---|
| 19 | else
|
---|
| 20 | /bin/bash
|
---|
| 21 | fi
|
---|
| 22 |
|
---|
| 23 | if strstr "$cmdline" "ssstkdebug"; then
|
---|
| 24 | /bin/bash
|
---|
| 25 | fi
|
---|
| 26 |
|
---|
| 27 | echo "Stopping the server in 10s"
|
---|
| 28 | sleep 10
|
---|
| 29 | poweroff
|
---|
Note:
See
TracBrowser
for help on using the repository browser.