#!/bin/sh export OSLAB_PATH=$(dirname `which $0`) if [ -f $OSLAB_PATH/linux-0.11.tar.gz ]; then [ -d $OSLAB_PATH/linux-0.11 ] && rm -rf $OSLAB_PATH/src mkdir $OSLAB_PATH/linux-0.11 tar zxf $OSLAB_PATH/src.tar.gz -C $OSLAB_PATH/src echo "Successfully recover linux-0.11." exit 0 else echo "Error: oslab cant't find a backup file named linux-0.11.tar.gz!" exit 1 fi