add unzipkdm
This commit is contained in:
BIN
archiso/airootfs/home/smart/unzipKDM.png
Normal file
BIN
archiso/airootfs/home/smart/unzipKDM.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.6 KiB |
20
archiso/airootfs/home/smart/unzipKDMs.sh
Normal file
20
archiso/airootfs/home/smart/unzipKDMs.sh
Normal 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
|
||||||
11
archiso/airootfs/home/smart/uzipkdm.desktop
Normal file
11
archiso/airootfs/home/smart/uzipkdm.desktop
Normal 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
|
||||||
Reference in New Issue
Block a user