add unzipkdm

This commit is contained in:
zj
2025-12-10 00:58:20 +08:00
parent 08371a2b2e
commit e48f83ab44
3 changed files with 31 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@@ -0,0 +1,20 @@
#!/bin/bash
cd /home/smart/下载/
ls *.zip | xargs -n1 unzip -o -d /media/kdm/
cd /media/kdm/
ls *.zip | xargs -n1 unzip -o -d /media/kdm/
echo "解压成功"
echo "删除密钥压缩包"
find /media/kdm/ -name "35054491*.zip" -delete
find /home/smart/下载/ -name "35054491*.zip" -delete
sleep 3
echo "刷新密钥"
curl -X POST -d 'userName=admin&userPassword=admin' -c /home/smart/cookie.txt http://127.0.0.1:8080/SmartTMS_S3/LoginController/login.do 2>&1 >/dev/null
curl http://127.0.0.1:8080/SmartTMS_S3/kdmController/updateKdm.do -X POST -b /home/smart/cookie.txt 2>&1 >/dev/null
echo "成功"
sleep 5

View File

@@ -0,0 +1,11 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=true
Icon[zh_CN]=/home/smart/unzipKDM.png
Name[zh_CN]=解压密钥
Exec=sh /home/smart/unzipKDMs.sh
Name=unzipkdm
Icon=/home/smart/unzipKDM.png