source:
scripts/patches/module-init-tools-3.0-cross-moveold.patch@
e71ed78
Last change on this file since e71ed78 was 7f65c0e, checked in by , 19 years ago | |
---|---|
|
|
File size: 2.6 KB |
-
module-init-tools-3.
old new 760 760 761 761 release: check clean tarball testsuite 762 762 763 moveold: check-for-sbin check-for-old move-old-targets 764 765 check-for-sbin: 766 if [ "`echo $(DESTDIR)$(sbindir) | tr -s / /`" = /sbin ]; then :; \ 767 else \ 768 echo moveold usually only makes sense when installing into /sbin; \ 769 exit 1; \ 770 fi 763 moveold: check-for-old move-old-targets 771 764 772 765 check-for-old: 773 if [ -f /sbin/lsmod.old ]; then \766 if [ -f $(DESTDIR)/sbin/lsmod.old ]; then \ 774 767 echo Someone already moved old versions. >&2; exit 1; \ 775 768 fi 776 769 … … 779 772 # Also, make symlink from /bin to /sbin for lsmod (FHS compliant). 780 773 move-old-targets: 781 774 for f in lsmod modprobe rmmod depmod insmod modinfo; do \ 782 if [ -L /sbin/$$f ]; then \ 783 ln -sf `ls -l /sbin/$$f | sed 's/.* -> //'`.old /sbin/$$f; \ 775 if [ -L $(DESTDIR)/sbin/$$f ]; then \ 776 ln -sf `ls -l $(DESTDIR)/sbin/$$f | sed 's/.* -> //'`.old \ 777 $(DESTDIR)/sbin/$$f; \ 784 778 fi; \ 785 mv /sbin/$$f /sbin/$$f.old;\786 if [ -f /usr/share/man/man8/$$f.8.gz ]; then\787 mv /usr/share/man/man8/$$f.8.gz\788 /usr/share/man/man8/$$f.old.8.gz;\789 elif [ -f /usr/share/man/man8/$$f.8.bz2 ]; then\790 mv /usr/share/man/man8/$$f.8.bz2\791 /usr/share/man/man8/$$f.old.8.bz2;\779 mv $(DESTDIR)/sbin/$$f $(DESTDIR)/sbin/$$f.old; \ 780 if [ -f $(DESTDIR)/usr/share/man/man8/$$f.8.gz ]; then \ 781 mv $(DESTDIR)/usr/share/man/man8/$$f.8.gz \ 782 $(DESTDIR)/usr/share/man/man8/$$f.old.8.gz; \ 783 elif [ -f $(DESTDIR)/usr/share/man/man8/$$f.8.bz2 ]; then \ 784 mv $(DESTDIR)/usr/share/man/man8/$$f.8.bz2 \ 785 $(DESTDIR)/usr/share/man/man8/$$f.old.8.bz2; \ 792 786 else \ 793 mv /usr/share/man/man8/$$f.8 /usr/share/man/man8/$$f.old.8; \ 787 mv $(DESTDIR)/usr/share/man/man8/$$f.8 \ 788 $(DESTDIR)/usr/share/man/man8/$$f.old.8; \ 794 789 fi; \ 795 790 done 796 791 for f in kallsyms ksyms; do \ 797 if [ -L /sbin/$$f ]; then \ 798 ln -sf `ls -l /sbin/$$f | sed 's/.* -> //'`.old /sbin/$$f; \ 792 if [ -L $(DESTDIR)/sbin/$$f ]; then \ 793 ln -sf `ls -l $(DESTDIR)/sbin/$$f | sed 's/.* -> //'`.old \ 794 $(DESTDIR)/sbin/$$f; \ 799 795 fi; \ 800 796 done 801 ln -s /sbin/lsmod.old /bin/lsmod.old797 ln -s /sbin/lsmod.old $(DESTDIR)/bin/lsmod.old 802 798 803 799 # For installs in /usr/local/sbin 804 800 links:
Note:
See TracBrowser
for help on using the repository browser.