v2ray/swap/build.sh

33 lines
528 B
Bash
Raw Permalink Normal View History

2019-01-12 11:23:33 +00:00
#!/bin/sh
MODULE=swap
VERSION=2.2
TITLE=虚拟内存
DESCRIPTION=老板,来一斤虚拟内存~
HOME_URL=Module_swap.asp
# Check and include base
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ "$MODULE" == "" ]; then
echo "module not found"
exit 1
fi
if [ -f "$DIR/$MODULE/$MODULE/install.sh" ]; then
echo "install script not found"
exit 2
fi
# now include build_base.sh
. $DIR/../softcenter/build_base.sh
# change to module directory
cd $DIR
# do something here
do_build_result
sh backup.sh $MODULE