source: ProjectBuilder/projects/proliantusbkey/devel/ssstk/stop.sh@ 1331

Last change on this file since 1331 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
Line 
1#!/bin/bash
2
3echo "Saving logs on USB key"
4if [ -d "$TMPDIR/log" ]; then
5 ts=`date +"%Y-%m-%d-%H-%M-%S"`
6 cp /tmp/ssstk.log $TMPDIR/log/$ts.log
7fi
8
9echo "Unmounting the key"
10umount $TMPDIR
11rmdir $TMPDIR
12
13echo "Stopping the server in 30''"
14sleep 30
15poweroff
Note: See TracBrowser for help on using the repository browser.