Skip to content

Commit

Permalink
Merge pull request #168 from idamir/master
Browse files Browse the repository at this point in the history
Fix kernel removing
  • Loading branch information
scaronni authored Oct 22, 2021
2 parents 5c52338 + 64a882a commit 622f0a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel_prerm.d_dkms
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ remove_initrd_backup() {

if [ -x /usr/sbin/dkms ]; then
while read line; do
name=`echo "$line" | awk '{print $1}' | sed 's/,$//'` | cut -d'/' -f1
vers=`echo "$line" | awk '{print $1}' | sed 's/,$//'` | cut -d'/' -f2
name=`echo "$line" | awk '{print $1}' | sed 's/,$//' | cut -d'/' -f1`
vers=`echo "$line" | awk '{print $1}' | sed 's/,$//' | cut -d'/' -f2`
arch=`echo "$line" | awk '{print $3}' | sed 's/:$//'`
echo "dkms: removing: $name $vers ($inst_kern) ($arch)" >&2
dkms remove -m $name -v $vers -k $inst_kern -a $arch
Expand Down

0 comments on commit 622f0a0

Please sign in to comment.