2020-03-04 18:39:12 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-01-20 12:30:12 +00:00
|
|
|
# SPDX-FileCopyrightText: 2019 Jiao Xianjun <putaoshu@msn.com>
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
2020-03-04 18:39:12 +00:00
|
|
|
if [ "$#" -ne 1 ]; then
|
|
|
|
echo "You must enter the \$OPENWIFI_DIR (the openwifi root directory) as argument"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
OPENWIFI_DIR=$1
|
|
|
|
|
|
|
|
|
|
|
|
if [ -f "$OPENWIFI_DIR/LICENSE" ]; then
|
|
|
|
echo "\$OPENWIFI_DIR is found!"
|
|
|
|
else
|
|
|
|
echo "\$OPENWIFI_DIR is not correct. Please check!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
home_dir=$(pwd)
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
cd $OPENWIFI_DIR/
|
|
|
|
git submodule init openwifi-hw
|
|
|
|
git submodule update openwifi-hw
|
|
|
|
cd openwifi-hw
|
2020-04-27 13:06:42 +00:00
|
|
|
git checkout master
|
2020-03-04 18:39:12 +00:00
|
|
|
git pull
|
|
|
|
|
|
|
|
cd $home_dir
|