Skip to content

Commit

Permalink
fix: dkms_post_remove: fix overlays error path
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeChenL committed Mar 13, 2024
1 parent d8ee0b8 commit ba2e2e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions debian/dkms.post_remove
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e

base_dir="${PWD%/*}/$kernelver/$arch/module/arch/arm64/boot/dts"
base_dir="${PWD%/*}/$(uname -r)/$(arch)/module/arch"
install_dir="/usr/lib/linux-image-$(uname -r)"

if [[ "$(readlink "$install_dir/amlogic/overlays")" == "$base_dir/amlogic/overlays" ]]
Expand All @@ -16,5 +16,5 @@ then
rm "$install_dir/rockchip/overlays"
fi

echo "Remove $install_dir/amlogic/overlays"
rm -rf "$base_dir/arch"
echo "Remove $base_dir"
rm -rf "$base_dir"

0 comments on commit ba2e2e7

Please sign in to comment.