3 echo install-with-care
"$@"
8 case $
(echo $DEST |
tr -s / /) in
9 /sbin
/insmod.static
) ;;# This didn't exist before, OK.
10 /sbin
/insmod|
/sbin
/lsmod|
/sbin
/modprobe|
/sbin
/rmmod|
/sbin
/depmod
)
11 if [ -f $DEST ] && [ -f $DEST.old
]; then
12 echo Refusing to
install $DEST, remove
$DEST.old first.
>&2
13 echo Note
: $DEST requires kernel version
2.5.48 or above.
14 if [ $DEST = /sbin
/modprobe
]; then
17 Note: generate-modprobe.conf requires /sbin/modprobe.old.
18 (i.e. if you need to run it, do so before removing modprobe.old).
25 /bin
/lsmod
) # If we're installing into /bin, make /sbin/lsmod link.
26 ln -sf ..
/bin
/lsmod
/sbin
/lsmod