/[baselayout]/branches/rc-scripts-1_6/sbin/MAKEDEV-gentoo.patch
Gentoo

Contents of /branches/rc-scripts-1_6/sbin/MAKEDEV-gentoo.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1577 - (show annotations) (download)
Wed Oct 19 00:07:16 2005 UTC (9 years ago) by vapier
File size: 2076 byte(s)
 remove dupliate call to uname
1 --- MAKEDEV
2 +++ MAKEDEV
3 @@ -102,8 +102,8 @@
4
5 if [ "$opt_V" ]
6 then
7 - echo "This is Debian MAKEDEV. For version info, try 'dpkg --list makedev'"
8 - echo "See /usr/share/doc/makedev/ for more information on Debian MAKEDEV."
9 + echo "This is MAKEDEV based on Debian's makedev_2.3.1-78."
10 + echo "See the MAKEDEV(8) manpage for more information."
11 exit 0
12 fi
13
14 @@ -308,60 +308,25 @@
15 done
16 }
17
18 +get_arch() {
19 + case `uname -m` in
20 + arm*) echo arm;;
21 + i?86) echo i386;;
22 + ppc*) echo powerpc;;
23 + s390*) echo s390;;
24 + sh*) echo sh;;
25 + x86_64) echo i386;;
26 + # alpha|hppa|ia64|m68k|mips|sparc
27 + *) echo $a;;
28 + esac
29 +}
30 +
31 for arg in $*
32 do
33 # case `cvt $arg` in
34 case $arg in
35 generic)
36 - # pick the right generic-<arch> using dpkg's knowledge
37 - case `dpkg --print-installation-architecture` in
38 - alpha)
39 - $0 $opts generic-alpha
40 - ;;
41 - arm)
42 - $0 $opts generic-arm
43 - ;;
44 - hppa)
45 - $0 $opts generic-hppa
46 - ;;
47 - i386)
48 - $0 $opts generic-i386
49 - ;;
50 - amd64)
51 - $0 $opts generic-i386
52 - ;;
53 - ia64)
54 - $0 $opts generic-ia64
55 - ;;
56 - m68k)
57 - $0 $opts generic-m68k
58 - ;;
59 - mips)
60 - $0 $opts generic-mips
61 - ;;
62 - mipsel)
63 - $0 $opts generic-mipsel
64 - ;;
65 - powerpc)
66 - $0 $opts generic-powerpc
67 - ;;
68 - ppc64)
69 - $0 $opts generic-powerpc
70 - ;;
71 - s390)
72 - $0 $opts generic-s390
73 - ;;
74 - sh*)
75 - $0 $opts generic-sh
76 - ;;
77 - sparc)
78 - $0 $opts generic-sparc
79 - ;;
80 - *)
81 - echo "$0: no support for generic on this arch" >&2
82 - exit 1
83 - ;;
84 - esac
85 + $0 $opts generic-`get_arch`
86 ;;
87 generic-alpha)
88 $0 $opts std
89 @@ -596,6 +562,10 @@
90 symlink mouse sunmouse
91 makedev openprom c 10 139 root root 0664
92 ;;
93 + generic-*)
94 + echo "$0: no support for generic on this arch" >&2
95 + exit 1
96 + ;;
97 local)
98 $0.local $opts
99 ;;
100 @@ -690,8 +660,7 @@
101 done
102 ;;
103 adb)
104 - # pick the right arch device using dpkg's knowledge
105 - case `dpkg --print-installation-architecture` in
106 + case `get_arch` in
107 powerpc)
108 # ADB bus devices (char)
109 makedev adb c 56 0 $mouse

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20