diff options
author | 2025-01-23 10:41:10 +0800 | |
---|---|---|
committer | 2025-01-23 10:41:10 +0800 | |
commit | e6f77b7ea3e38c9853bee60b275f3f89d252a5b3 (patch) | |
tree | 80bfbabed9d4cbcf9fa62677f78b34279d7e2f87 /init | |
download | linux-0.11-master.tar.gz linux-0.11-master.zip |
Diffstat (limited to 'init')
-rwxr-xr-x | init | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,13 @@ | |||
1 | #!/bin/sh | ||
2 | export OSLAB_PATH=$(dirname `which $0`) | ||
3 | |||
4 | if [ -f $OSLAB_PATH/linux-0.11.tar.gz ]; then | ||
5 | [ -d $OSLAB_PATH/linux-0.11 ] && rm -rf $OSLAB_PATH/src | ||
6 | mkdir $OSLAB_PATH/linux-0.11 | ||
7 | tar zxf $OSLAB_PATH/src.tar.gz -C $OSLAB_PATH/src | ||
8 | echo "Successfully recover linux-0.11." | ||
9 | exit 0 | ||
10 | else | ||
11 | echo "Error: oslab cant't find a backup file named linux-0.11.tar.gz!" | ||
12 | exit 1 | ||
13 | fi | ||