QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1632|回复: 0

make moveold error!

[复制链接]
发表于 2006-3-12 10:29:47 | 显示全部楼层 |阅读模式
if [ "`echo //sbin | tr -s / /`" = /sbin ]; then :;    \
else                                                                 \
        echo moveold usually only makes sense when installing into /sbin; \
        exit 1;                                                      \
fi
if [ -f /sbin/lsmod.old ]; then                                 \
        echo Someone already moved old versions. >&2; exit 1;   \
fi
for f in lsmod modprobe rmmod depmod insmod modinfo; do             \
    if [ -L /sbin/$f ]; then                                        \
        ln -sf `ls -l /sbin/$f | sed 's/.* -> //'`.old /sbin/$f;  \
    fi;                                                             \
    mv /sbin/$f /sbin/$f.old;                                       \
    if [ -f /usr/share/man/man8/$f.8.gz ]; then             \
        mv /usr/share/man/man8/$f.8.gz                              \
                /usr/share/man/man8/$f.old.8.gz;                    \
    elif [ -f /usr/share/man/man8/$f.8.bz2 ]; then                  \
        mv /usr/share/man/man8/$f.8.bz2                     \
                /usr/share/man/man8/$f.old.8.bz2;                   \
    else                                                            \
        mv /usr/share/man/man8/$f.8 /usr/share/man/man8/$f.old.8; \
    fi;                                                             \
done
ln: cannot remove `/sbin/lsmod': Permission denied
mv: cannot move `/sbin/lsmod' to `/sbin/lsmod.old': Permission denied
mv: cannot move `/usr/share/man/man8/lsmod.8.gz' to `/usr/share/man/man8/lsmod.old.8.gz': Permission denied
ln: cannot remove `/sbin/modprobe': Permission denied
mv: cannot move `/sbin/modprobe' to `/sbin/modprobe.old': Permission denied
mv: cannot move `/usr/share/man/man8/modprobe.8.gz' to `/usr/share/man/man8/modprobe.old.8.gz': Permission denied
ln: cannot remove `/sbin/rmmod': Permission denied
mv: cannot move `/sbin/rmmod' to `/sbin/rmmod.old': Permission denied
mv: cannot move `/usr/share/man/man8/rmmod.8.gz' to `/usr/share/man/man8/rmmod.old.8.gz': Permission denied
mv: cannot move `/sbin/depmod' to `/sbin/depmod.old': Permission denied
mv: cannot move `/usr/share/man/man8/depmod.8.gz' to `/usr/share/man/man8/depmod.old.8.gz': Permission denied
mv: cannot move `/sbin/insmod' to `/sbin/insmod.old': Permission denied
mv: cannot move `/usr/share/man/man8/insmod.8.gz' to `/usr/share/man/man8/insmod.old.8.gz': Permission denied
mv: cannot move `/sbin/modinfo' to `/sbin/modinfo.old': Permission denied
mv: cannot move `/usr/share/man/man8/modinfo.8.gz' to `/usr/share/man/man8/modinfo.old.8.gz': Permission denied
make: *** [move-old-targets] Error 1
I don't know this is why??please tell me! thanks!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-25 06:39 , Processed in 0.043193 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表