rewrite scripts
try to provide better syntax and avoid using bash
This commit is contained in:
23
debian/bin/no-depmod
vendored
23
debian/bin/no-depmod
vendored
@@ -6,13 +6,20 @@ set -e
|
||||
# postinst, we do not need or want to package the files that it
|
||||
# generates.
|
||||
|
||||
if [ "x$1" = x-V ]; then
|
||||
case "$1" in
|
||||
-V )
|
||||
# Satisfy version test
|
||||
echo 'not really module-init-tools'
|
||||
elif [ "x$1" = x-b -a "${2%/depmod.??????}" != "$2" ]; then
|
||||
# Satisfy test of short kernel versions
|
||||
mkdir -p "$2/lib/modules/$3"
|
||||
touch "$2/lib/modules/$3/modules.dep"
|
||||
else
|
||||
echo 'skipping depmod'
|
||||
fi
|
||||
exit
|
||||
;;
|
||||
-b )
|
||||
if [ "${2%/depmod.??????}" != "$2" ] ; then
|
||||
# Satisfy test of short kernel versions
|
||||
mkdir -p "$2/lib/modules/$3"
|
||||
touch "$2/lib/modules/$3/modules.dep"
|
||||
exit
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
echo 'skipping depmod'
|
||||
|
Reference in New Issue
Block a user