aboutsummaryrefslogtreecommitdiff
path: root/linux/postinstall
diff options
context:
space:
mode:
Diffstat (limited to 'linux/postinstall')
-rwxr-xr-xlinux/postinstall10
1 files changed, 7 insertions, 3 deletions
diff --git a/linux/postinstall b/linux/postinstall
index 04b6aa2f..f5e8be90 100755
--- a/linux/postinstall
+++ b/linux/postinstall
@@ -1,7 +1,11 @@
#!/bin/sh
for i in /lib/modules/*; do
- [ -f $i/current ] || continue
- depmod ${i##*/}
- mkinitrd -k ${i##*/} /boot/initrd-linux
+ [ -L $i ] || continue
+ case $(readlink $i) in
+ linux)
+ depmod ${i##*/}
+ mkinitrd -k ${i##*/} /boot/initrd-linux
+ break;;
+ esac
done