Last change
on this file since 1436 was 1331, checked in by Bruno Cornec, 13 years ago |
Adds a new proliantusbkey project
|
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
257 bytes
|
Rev | Line | |
---|
[1331] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | echo "Saving logs on USB key"
|
---|
| 4 | if [ -d "$TMPDIR/log" ]; then
|
---|
| 5 | ts=`date +"%Y-%m-%d-%H-%M-%S"`
|
---|
| 6 | cp /tmp/ssstk.log $TMPDIR/log/$ts.log
|
---|
| 7 | fi
|
---|
| 8 |
|
---|
| 9 | echo "Unmounting the key"
|
---|
| 10 | umount $TMPDIR
|
---|
| 11 | rmdir $TMPDIR
|
---|
| 12 |
|
---|
| 13 | echo "Stopping the server in 30''"
|
---|
| 14 | sleep 30
|
---|
| 15 | poweroff
|
---|
Note:
See
TracBrowser
for help on using the repository browser.