summaryrefslogtreecommitdiffstats
path: root/init
blob: 38ec53d3798392129230b89835b453524b191ef5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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