Skip to content

Commit

Permalink
zshでdkms.install、dkms.uninstallを利用できるように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
shirow-github committed Mar 19, 2024
1 parent 2e6303a commit f1c41b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dkms.install
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
. dkms.uninstall
. ./dkms.uninstall

su -c "
cp -a `pwd`/driver-pt1 /usr/src/$PACKAGE_NAME-$PACKAGE_VERSION;
Expand Down
7 changes: 6 additions & 1 deletion dkms.uninstall
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit f1c41b6

Please sign in to comment.