1
0

rewrite scripts

try to provide better syntax and avoid using bash
This commit is contained in:
2024-10-29 05:12:06 +03:00
parent 1e13062902
commit eb2bdc81cb
24 changed files with 363 additions and 247 deletions

View File

@@ -5,8 +5,8 @@
# policy doesn't specify what to do.
if ($. == 1 && m|^\#!\s*/usr/bin/env\s+(.+)|) {
if ($1 eq "perl") {
$_ = "#!/usr/bin/perl\n";
$_ = "#!/usr/bin/perl\n";
} else {
print STDERR "W: Found #!/usr/bin/env $1 and don't know what to substitute\n";
print STDERR "W: Found #!/usr/bin/env $1 and don't know what to substitute\n";
}
}

23
debian/bin/no-depmod vendored
View File

@@ -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'