summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmwarebinary/files/depmod.sh
blob: 3a065d68654f4913ae61eb0249310565525bd07d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

#TODO: -m returns i686... we dont know it, we asume it!

# get newest kernel. We asume it is used
kversion=$(ls /boot/vmlinuz*|grep -v -e "^/boot/vmlinuz$"|sed 's,/boot/vmlinuz-,,'|sort|tail -n 1)

case $1 in
	-a)
		/sbin/depmod.orig -a ${kversion}
		;;
esac