From 3fa51b010bc1b17fd66a14bf12c5c9de2ff92117 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 21 Aug 2003 23:14:52 +0000 Subject: [PATCH] For some reason, install wants to set the mode to 755 on installed .o files. Override it to 644. --- modtool.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modtool.in b/modtool.in index 8b86ad94..084a33a5 100755 --- a/modtool.in +++ b/modtool.in @@ -18,8 +18,14 @@ case $mode in --install) module_src=$1 module_dest=`echo $2 | sed "s/\.ko$/${LINUX_MODULE_EXT}/"` - echo $INSTALL "$module_src" "$module_dest" - $INSTALL "$module_src" "$module_dest" + echo $INSTALL -m644 "$module_src" "$module_dest" + $INSTALL -m644 "$module_src" "$module_dest" + ;; +--uninstall) + module_src=$1 + module_dest=`echo $2 | sed "s/\.ko$/${LINUX_MODULE_EXT}/"` + echo uninstall "$module_src" "$module_dest" + rm -f "$module_dest" ;; *) echo Unknown mode $mode >&2 -- 2.26.2