source: ProjectBuilder/projects/proliantusbkey/0.9.6/customized/etc/rc.d/rc.local@ 1436

Last change on this file since 1436 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
Line 
1#!/bin/bash
2
3#set -m
4echo "Starting rc.local script"
5
6. /etc/init.d/functions
7. /ssstk/ssstk-functions
8
9cmdline=$(cat /proc/cmdline)
10
11if strstr "$cmdline" "deploy"; then
12 deploy.sh 2>&1 | tee /tmp/ssstk_deploy.log
13elif strstr "$cmdline" "capture"; then
14 capture.sh 2>&1 | tee /tmp/ssstk_capture.log
15elif strstr "$cmdline" "ilo"; then
16 ilo.sh 2>&1 | tee /tmp/ssstk_ilo.log
17elif strstr "$cmdline" "fw"; then
18 fw.sh 2>&1 | tee /tmp/ssstk_fw.log
19else
20 /bin/bash
21fi
22
23if strstr "$cmdline" "ssstkdebug"; then
24 /bin/bash
25fi
26
27echo "Stopping the server in 10s"
28sleep 10
29poweroff
Note: See TracBrowser for help on using the repository browser.