source: clfs-embedded/bootscripts/Makefile@ a0038b3

Last change on this file since a0038b3 was c05b9cf, checked in by Maarten Lankhorst <mlankhorst@…>, 15 years ago

bootscripts: Add bcm47xx scripts

  • Property mode set to 100644
File size: 1.5 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/start
11 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/stop
12 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/init.d
13
14install: create-dirs
15 install -m ${CONFMODE} clfs/rc.d/init.d/functions ${EXTDIR}/rc.d/init.d/
16 install -m ${MODE} clfs/rc.d/startup ${EXTDIR}/rc.d/
17 install -m ${MODE} clfs/rc.d/shutdown ${EXTDIR}/rc.d/
18 install -m ${MODE} clfs/rc.d/init.d/network ${EXTDIR}/rc.d/init.d/
19 install -m ${MODE} clfs/rc.d/init.d/syslog ${EXTDIR}/rc.d/init.d/
20 ln -sf ../init.d/syslog ${EXTDIR}/rc.d/start/S05syslog
21 ln -sf ../init.d/syslog ${EXTDIR}/rc.d/stop/K99syslog
22 ln -sf ../init.d/network ${EXTDIR}/rc.d/start/S10network
23 ln -sf ../init.d/network ${EXTDIR}/rc.d/stop/K80network
24
25install-dropbear: create-dirs
26 install -m ${MODE} clfs/rc.d/init.d/sshd ${EXTDIR}/rc.d/init.d/
27 ln -sf ../init.d/sshd ${EXTDIR}/rc.d/start/S30sshd
28 ln -sf ../init.d/sshd ${EXTDIR}/rc.d/stop/K30sshd
29
30install-bridge: create-dirs
31 install -m ${MODE} clfs/rc.d/init.d/bridge ${EXTDIR}/rc.d/init.d/
32 ln -sf ../init.d/bridge ${EXTDIR}/rc.d/start/S09bridge
33 ln -sf ../init.d/bridge ${EXTDIR}/rc.d/stop/K81bridge
34
35install-bcm47xx: create-dirs
36 install -m ${MODE} clfs/rc.d/init.d/bcm47xx-switch ${EXTDIR}/rc.d/init.d/
37 ln -sf ../init.d/bcm47xx-switch ${EXTDIR}/rc.d/start/S08bcm47xx-switch
38 ln -sf ../init.d/bcm47xx-switch ${EXTDIR}/rc.d/stop/K82bcm47xx-switch
39
40.PHONY: all create-dirs install install-dropbear install-bridge
Note: See TracBrowser for help on using the repository browser.