ios-hooks/pub.sh
2025-09-05 18:48:22 +08:00

23 lines
527 B
Bash
Executable File

copy_debs() {
sshpass -p alpine pscp -l root -A -h ./ips.txt ./packages/* /User/Downloads
}
install_change() {
sshpass -p alpine pssh -l root -A -ih ./ips.txt "dpkg -i /User/Downloads/myios.deb"
}
restart() {
## sshpass -p alpine pssh -l root -A -ih ./ansible_files/pssh_ip.txt "killall -9 tempor"
sshpass -p alpine pssh -l root -A -ih ./ips.txt "killall -9 SpringBoard"
}
if [[ $1 = "copy" ]]
then
copy_debs
elif [[ $1 = "install" ]]
then
install_change
elif [[ $1 = "restart" ]]
then
restart
fi