From f1c41b6199342825d4ea4865174c5f87c8f42808 Mon Sep 17 00:00:00 2001 From: shirow-github Date: Tue, 19 Mar 2024 12:11:41 +0900 Subject: [PATCH] =?UTF-8?q?zsh=E3=81=A7dkms.install=E3=80=81dkms.uninstall?= =?UTF-8?q?=E3=82=92=E5=88=A9=E7=94=A8=E3=81=A7=E3=81=8D=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dkms.install | 2 +- dkms.uninstall | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dkms.install b/dkms.install index 4e1509a..d9c5017 100644 --- a/dkms.install +++ b/dkms.install @@ -1,4 +1,4 @@ -. dkms.uninstall +. ./dkms.uninstall su -c " cp -a `pwd`/driver-pt1 /usr/src/$PACKAGE_NAME-$PACKAGE_VERSION; diff --git a/dkms.uninstall b/dkms.uninstall index 961f7b3..0eb25a6 100644 --- a/dkms.uninstall +++ b/dkms.uninstall @@ -1,5 +1,10 @@ -. driver/dkms.conf +if [ "$ZSH_NAME" = "zsh" ];then + setopt localoptions ksharrays +fi + +. ./driver/dkms.conf su -c " dkms remove -m $PACKAGE_NAME -v $PACKAGE_VERSION --all; +make uninstall; rm -vrf /usr/src/$PACKAGE_NAME-$PACKAGE_VERSION"