mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
0c9b4f1d9b
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
25 lines
687 B
Bash
Executable File
25 lines
687 B
Bash
Executable File
#!/usr/bin/env ash
|
|
#
|
|
# Copyright (C) 2024 AuxXxilium <https://github.com/AuxXxilium> and Ing <https://github.com/wjz304>
|
|
#
|
|
# This is free software, licensed under the MIT License.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
if [ "${1}" = "late" ]; then
|
|
echo "Installing addon smartctl - ${1}"
|
|
mkdir -p "/tmpRoot/usr/arc/addons/"
|
|
cp -pf "${0}" "/tmpRoot/usr/arc/addons/"
|
|
|
|
FILE="/tmpRoot/usr/bin/smartctl"
|
|
[ ! -f "${FILE}.bak" ] && cp -pf "${FILE}" "${FILE}.bak"
|
|
|
|
cp -vpf /usr/bin/smartctl.sh "${FILE}"
|
|
|
|
elif [ "${1}" = "uninstall" ]; then
|
|
echo "Installing addon smartctl - ${1}"
|
|
|
|
FILE="/tmpRoot/usr/bin/smartctl"
|
|
[ -f "${FILE}.bak" ] && mv -f "${FILE}.bak" "${FILE}"
|
|
fi
|