Commit 6ee2da49 authored by Benoit Rat's avatar Benoit Rat

scripts: add sudo to write in depmod config

parent 40d2c21d
...@@ -129,19 +129,14 @@ checkdrv() ...@@ -129,19 +129,14 @@ checkdrv()
done done
if (lsb_release -a 2>&1 | grep Ubuntu &> /dev/null); then if (lsb_release -a 2>&1 | grep Ubuntu &> /dev/null); then
echo "Forcing depmod.conf to look into"; echo "Forcing depmod.d/ubuntu.conf to look into extra folder";
fi
if (lsb_release -a | grep Ubuntu); then
cat /etc/depmod.d/ubuntu.conf | grep extra &> /dev/null cat /etc/depmod.d/ubuntu.conf | grep extra &> /dev/null
if [ "x$?" != "x0" ]; then if [ "x$?" != "x0" ]; then
echo "Adding extra to depmod.conf search path in order to force looking at our installed modules" echo "Adding extra to depmod.conf search path in order to force looking at our installed modules"
sed 's/built-in/extra built-in/g' -i /etc/depmod.d/ubuntu.conf sudo sed 's/built-in/extra built-in/g' -i /etc/depmod.d/ubuntu.conf
fi fi
fi fi
echo "Creating dependancies... (This can take some time)" echo "Creating dependancies... (This can take some time)"
echo "sudo depmod -a" echo "sudo depmod -a"
sudo depmod -a sudo depmod -a
...@@ -248,7 +243,7 @@ genreport() ...@@ -248,7 +243,7 @@ genreport()
echo "WARNING: Installation skipped" echo "WARNING: Installation skipped"
fi fi
cat /sys/module/fmc/version cat /sys/module/fmc/*version
for fmcmod in $(find /lib/modules/$(uname -r) -name fmc.ko); do for fmcmod in $(find /lib/modules/$(uname -r) -name fmc.ko); do
echo ${fmcmod} echo ${fmcmod}
strings ${fmcmod} | grep version= strings ${fmcmod} | grep version=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment