source: bootscripts/Makefile@ cd115ff

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since cd115ff was 81281a72, checked in by Jim Gifford <clfs@…>, 17 years ago

Added: udev bootscript

  • Property mode set to 100644
File size: 9.4 KB
Line 
1ETCDIR=/etc
2EXTDIR=${DESTDIR}${ETCDIR}
3MODE=754
4DIRMODE=755
5CONFMODE=644
6
7all: install
8
9create-dirs:
10 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/rc0.d
11 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/rc1.d
12 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/rc2.d
13 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/rc3.d
14 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/rc4.d
15 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/rc5.d
16 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/rc6.d
17 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/rcsysinit.d
18 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/init.d
19 install -d -m ${DIRMODE} ${EXTDIR}/sysconfig
20
21create-service-dir:
22 install -d -m ${DIRMODE} ${EXTDIR}/sysconfig/network-devices/services
23
24install: create-dirs create-service-dir
25 install -m ${MODE} clfs/init.d/checkfs ${EXTDIR}/rc.d/init.d/
26 install -m ${MODE} clfs/init.d/cleanfs ${EXTDIR}/rc.d/init.d/
27 install -m ${CONFMODE} clfs/init.d/functions ${EXTDIR}/rc.d/init.d/
28 install -m ${MODE} clfs/init.d/halt ${EXTDIR}/rc.d/init.d/
29 install -m ${MODE} clfs/init.d/console ${EXTDIR}/rc.d/init.d/
30 install -m ${MODE} clfs/init.d/localnet ${EXTDIR}/rc.d/init.d/
31 install -m ${MODE} clfs/init.d/modules ${EXTDIR}/rc.d/init.d/
32 install -m ${MODE} clfs/init.d/mountfs ${EXTDIR}/rc.d/init.d/
33 install -m ${MODE} clfs/init.d/mountkernfs ${EXTDIR}/rc.d/init.d/
34 install -m ${MODE} clfs/init.d/network ${EXTDIR}/rc.d/init.d/
35 install -m ${MODE} clfs/init.d/rc ${EXTDIR}/rc.d/init.d/
36 install -m ${MODE} clfs/init.d/reboot ${EXTDIR}/rc.d/init.d/
37 install -m ${MODE} clfs/init.d/sendsignals ${EXTDIR}/rc.d/init.d/
38 install -m ${MODE} clfs/init.d/setclock ${EXTDIR}/rc.d/init.d/
39 install -m ${MODE} clfs/init.d/sysklogd ${EXTDIR}/rc.d/init.d/
40 install -m ${MODE} clfs/init.d/swap ${EXTDIR}/rc.d/init.d/
41 install -m ${MODE} clfs/init.d/sysctl ${EXTDIR}/rc.d/init.d/
42 install -m ${MODE} clfs/init.d/template ${EXTDIR}/rc.d/init.d/
43 install -m ${MODE} clfs/init.d/udev ${EXTDIR}/rc.d/init.d/
44 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc0.d/K80network
45 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc0.d/K90sysklogd
46 ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc0.d/S60sendsignals
47 ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rc0.d/S70mountfs
48 ln -sf ../init.d/swap ${EXTDIR}/rc.d/rc0.d/S80swap
49 ln -sf ../init.d/localnet ${EXTDIR}/rc.d/rc0.d/S90localnet
50 ln -sf ../init.d/halt ${EXTDIR}/rc.d/rc0.d/S99halt
51 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc1.d/K80network
52 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc1.d/S10sysklogd
53 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc2.d/S20network
54 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc2.d/S10sysklogd
55 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc3.d/S10sysklogd
56 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc3.d/S20network
57 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc4.d/S10sysklogd
58 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc4.d/S20network
59 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc5.d/S10sysklogd
60 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc5.d/S20network
61 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc6.d/K80network
62 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc6.d/K90sysklogd
63 ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc6.d/S60sendsignals
64 ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rc6.d/S70mountfs
65 ln -sf ../init.d/swap ${EXTDIR}/rc.d/rc6.d/S80swap
66 ln -sf ../init.d/localnet ${EXTDIR}/rc.d/rc6.d/S90localnet
67 ln -sf ../init.d/reboot ${EXTDIR}/rc.d/rc6.d/S99reboot
68 ln -sf ../init.d/mountkernfs ${EXTDIR}/rc.d/rcsysinit.d/S00mountkernfs
69 ln -sf ../init.d/modules ${EXTDIR}/rc.d/rcsysinit.d/S05modules
70 ln -sf ../init.d/udev ${EXTDIR}/rc.d/rcsysinit.d/S10udev
71 ln -sf ../init.d/checkfs ${EXTDIR}/rc.d/rcsysinit.d/S20checkfs
72 ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rcsysinit.d/S30mountfs
73 ln -sf ../init.d/swap ${EXTDIR}/rc.d/rcsysinit.d/S40swap
74 ln -sf ../init.d/cleanfs ${EXTDIR}/rc.d/rcsysinit.d/S50cleanfs
75 ln -sf ../init.d/setclock ${EXTDIR}/rc.d/rcsysinit.d/S60setclock
76 ln -sf ../init.d/console ${EXTDIR}/rc.d/rcsysinit.d/S70console
77 ln -sf ../init.d/localnet ${EXTDIR}/rc.d/rcsysinit.d/S80localnet
78 ln -sf ../init.d/sysctl ${EXTDIR}/rc.d/rcsysinit.d/S90sysctl
79 if [ ! -f ${EXTDIR}/sysconfig/bootscripts ]; then install -m ${CONFMODE} clfs/sysconfig/bootscripts ${EXTDIR}/sysconfig/bootscripts; fi
80 if [ ! -f ${EXTDIR}/sysconfig/console ]; then install -m ${CONFMODE} clfs/sysconfig/console ${EXTDIR}/sysconfig/; fi
81 if [ ! -f ${EXTDIR}/sysconfig/createfiles ]; then install -m ${CONFMODE} clfs/sysconfig/createfiles ${EXTDIR}/sysconfig/; fi
82 if [ ! -f ${EXTDIR}/sysconfig/modules ]; then install -m ${CONFMODE} clfs/sysconfig/modules ${EXTDIR}/sysconfig/; fi
83 if [ ! -f ${EXTDIR}/sysconfig/rc ]; then install -m ${CONFMODE} clfs/sysconfig/rc ${EXTDIR}/sysconfig/; fi
84 install -m ${MODE} clfs/sysconfig/network-devices/ifup ${EXTDIR}/sysconfig/network-devices/
85 install -m ${MODE} clfs/sysconfig/network-devices/ifdown ${EXTDIR}/sysconfig/network-devices/
86 install -m ${MODE} clfs/sysconfig/network-devices/services/ipv4-static ${EXTDIR}/sysconfig/network-devices/services/
87 install -m ${MODE} clfs/sysconfig/network-devices/services/ipv4-static-route ${EXTDIR}/sysconfig/network-devices/services/
88
89install-consolelog: create-dirs
90 install -m ${MODE} contrib/init.d/consolelog ${EXTDIR}/rc.d/init.d
91 ln -sf ../init.d/consolelog ${EXTDIR}/rc.d/rcsysinit.d/S00consolelog
92 install --backup=numbered -m ${CONFMODE} contrib/sysconfig/consolelog ${EXTDIR}/sysconfig/
93
94install-service-mtu: create-service-dir
95 install -m ${MODE} contrib/sysconfig/network-devices/services/mtu ${EXTDIR}/sysconfig/network-devices/services
96
97minimal: create-dirs create-service-dir
98 sed -e 's|/bin:/usr/bin:/sbin:/usr/sbin|/tools/bin:/tools/sbin:/bin:/sbin|g' clfs/init.d/functions > clfs/init.d/functions.minimal
99 install -m ${MODE} clfs/init.d/checkfs ${EXTDIR}/rc.d/init.d/
100 install -m ${MODE} clfs/init.d/cleanfs ${EXTDIR}/rc.d/init.d/
101 install -m ${CONFMODE} clfs/init.d/functions.minimal ${EXTDIR}/rc.d/init.d/functions
102 install -m ${MODE} clfs/init.d/halt ${EXTDIR}/rc.d/init.d/
103 install -m ${MODE} clfs/init.d/localnet ${EXTDIR}/rc.d/init.d/
104 install -m ${MODE} clfs/init.d/mountfs ${EXTDIR}/rc.d/init.d/
105 install -m ${MODE} clfs/init.d/mountkernfs ${EXTDIR}/rc.d/init.d/
106 install -m ${MODE} clfs/init.d/rc ${EXTDIR}/rc.d/init.d/
107 install -m ${MODE} clfs/init.d/reboot ${EXTDIR}/rc.d/init.d/
108 install -m ${MODE} clfs/init.d/sendsignals ${EXTDIR}/rc.d/init.d/
109 install -m ${MODE} clfs/init.d/setclock ${EXTDIR}/rc.d/init.d/
110 install -m ${MODE} clfs/init.d/swap ${EXTDIR}/rc.d/init.d/
111 ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc0.d/S60sendsignals
112 ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rc0.d/S70mountfs
113 ln -sf ../init.d/swap ${EXTDIR}/rc.d/rc0.d/S80swap
114 ln -sf ../init.d/halt ${EXTDIR}/rc.d/rc0.d/S99halt
115 ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc6.d/S60sendsignals
116 ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rc6.d/S70mountfs
117 ln -sf ../init.d/swap ${EXTDIR}/rc.d/rc6.d/S80swap
118 ln -sf ../init.d/reboot ${EXTDIR}/rc.d/rc6.d/S99reboot
119 ln -sf ../init.d/mountkernfs ${EXTDIR}/rc.d/rcsysinit.d/S00mountkernfs
120 ln -sf ../init.d/udev ${EXTDIR}/rc.d/rcsysinit.d/S10udev
121 ln -sf ../init.d/checkfs ${EXTDIR}/rc.d/rcsysinit.d/S20checkfs
122 ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rcsysinit.d/S30mountfs
123 ln -sf ../init.d/swap ${EXTDIR}/rc.d/rcsysinit.d/S40swap
124 ln -sf ../init.d/cleanfs ${EXTDIR}/rc.d/rcsysinit.d/S50cleanfs
125 ln -sf ../init.d/setclock ${EXTDIR}/rc.d/rcsysinit.d/S60setclock
126 if [ ! -f ${EXTDIR}/sysconfig/rc ]; then install -m ${CONFMODE} clfs/sysconfig/rc ${EXTDIR}/sysconfig/; fi
127 if [ ! -f ${EXTDIR}/sysconfig/createfiles ]; then install -m ${CONFMODE} clfs/sysconfig/createfiles ${EXTDIR}/sysconfig/; fi
128
129install-raq2:
130 install -m ${MODE} clfs/init.d/paneld ${EXTDIR}/rc.d/init.d/
131 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc0.d/K01paneld
132 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc1.d/S99paneld
133 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc2.d/S99paneld
134 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc3.d/S99paneld
135 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc4.d/S99paneld
136 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc5.d/S99paneld
137 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc6.d/K01paneld
138 if [ ! -f ${EXTDIR}/sysconfig/lcd ]; then install -m ${CONFMODE} clfs/sysconfig/lcd-raq2 ${EXTDIR}/sysconfig/lcd; fi
139
140install-raq3:
141 install -m ${MODE} clfs/init.d/setlcd ${EXTDIR}/rc.d/init.d/
142 ln -sf ../init.d/setlcd ${EXTDIR}/rc.d/rc0.d/K01setlcd
143 ln -sf ../init.d/setlcd ${EXTDIR}/rc.d/rc1.d/S99setlcd
144 ln -sf ../init.d/setlcd ${EXTDIR}/rc.d/rc2.d/S99setlcd
145 ln -sf ../init.d/setlcd ${EXTDIR}/rc.d/rc3.d/S99setlcd
146 ln -sf ../init.d/setlcd ${EXTDIR}/rc.d/rc4.d/S99setlcd
147 ln -sf ../init.d/setlcd ${EXTDIR}/rc.d/rc5.d/S99setlcd
148 ln -sf ../init.d/setlcd ${EXTDIR}/rc.d/rc6.d/K01setlcd
149 if [ ! -f ${EXTDIR}/sysconfig/lcd ]; then install -m ${CONFMODE} clfs/sysconfig/lcd-raq3 ${EXTDIR}/sysconfig/lcd; fi
150
151install-lcd:
152 if [ ! -f ${EXTDIR}/sysconfig/lcd ]; then install -m ${CONFMODE} clfs/sysconfig/lcd ${EXTDIR}/sysconfig/lcd; fi
153
154.PHONY: all create-dirs create-service-dir install install-consolelog \
155 install-service-mtu minimal install-lcd install-raq2 install-raq3
Note: See TracBrowser for help on using the repository browser.