mkmod.sh: use different archive names depending on architectural differences
This commit is contained in:
5
mkmod.sh
5
mkmod.sh
@@ -19,14 +19,13 @@ set -e
|
|||||||
|
|
||||||
BUILD_64="build_arm64-v8a"
|
BUILD_64="build_arm64-v8a"
|
||||||
BUILD_32="build_armeabi-v7a"
|
BUILD_32="build_armeabi-v7a"
|
||||||
MOD="watchdog_disabler_$(date +%Y-%M-%d).zip"
|
|
||||||
THIS="$(basename $0)"
|
THIS="$(basename $0)"
|
||||||
|
|
||||||
echo() { command echo "[$THIS]: $@"; }
|
echo() { command echo "[$THIS]: $@"; }
|
||||||
|
|
||||||
clean()
|
clean()
|
||||||
{
|
{
|
||||||
rm -rf $MOD \
|
rm -rf watchdog_disabler*.zip \
|
||||||
$PWD/module/system/bin/disable_watchdog \
|
$PWD/module/system/bin/disable_watchdog \
|
||||||
$PWD/module/customize.sh
|
$PWD/module/customize.sh
|
||||||
touch $PWD/module/system/bin/placeholder
|
touch $PWD/module/system/bin/placeholder
|
||||||
@@ -99,6 +98,8 @@ if [ $# -eq 0 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
MOD="watchdog_disabler_$1-bit_$(date +%Y-%M-%d).zip"
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
"32") prepare; mkzip 32 ;;
|
"32") prepare; mkzip 32 ;;
|
||||||
"64") prepare; mkzip 64 ;;
|
"64") prepare; mkzip 64 ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user