脚本内添加安装、卸载功能

This commit is contained in:
aixiao 2022-04-01 21:20:02 +08:00
parent 5df2ddbd89
commit 494e3724ed
2 changed files with 20 additions and 0 deletions

View File

@ -47,7 +47,13 @@ function MV() {
$STRIP ./rm_ $STRIP ./rm_
} }
install_() {
cp rm_ /bin/
}
uninstall_() {
rm /bin/rm_
}
init init
@ -57,5 +63,19 @@ if test "$@" = "clean"; then
exit 0; exit 0;
fi fi
if test "$@" = "install"; then
install_
exit 0;
fi
if test "$@" = "uninstall"; then
uninstall_
exit 0;
fi
LIB LIB
MV MV
exit 0
20220401

BIN
x64-rm_

Binary file not shown.