mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 10:31:54 +08:00
重构更新
This commit is contained in:
11
patches/custom/old-kernel-msd/apply.sh
Normal file
11
patches/custom/old-kernel-msd/apply.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
APP_PATH=$(readlink -f $(dirname $0))
|
||||
echo "-> Apply patches"
|
||||
cd /usr/lib/python3.10/site-packages/
|
||||
git apply ${APP_PATH}/*.patch
|
||||
cd ${APP_PATH}
|
||||
echo "-> Add otgmsd unlock link"
|
||||
cp kvmd-helper-otgmsd-unlock /usr/bin/
|
||||
echo "-> Add sudoer"
|
||||
echo "kvmd ALL=(ALL) NOPASSWD: /usr/bin/kvmd-helper-otgmsd-unlock" >> /etc/sudoers.d/99_kvmd
|
||||
echo "-> Apply old kernel msd patch done."
|
||||
Reference in New Issue
Block a user