source: clfs-embedded/bootscripts/Makefile@ baaf929

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

book: Add hostapd and libnl to beyond section

  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[003388c]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/
[719faf6]20 install -m ${MODE} clfs/rc.d/init.d/bridge ${EXTDIR}/rc.d/init.d/
[79f7100]21 ln -sf ../init.d/syslog ${EXTDIR}/rc.d/start/S05syslog
22 ln -sf ../init.d/syslog ${EXTDIR}/rc.d/stop/K99syslog
23 ln -sf ../init.d/network ${EXTDIR}/rc.d/start/S10network
24 ln -sf ../init.d/network ${EXTDIR}/rc.d/stop/K80network
[719faf6]25 ln -sf ../init.d/bridge ${EXTDIR}/rc.d/start/S09bridge
26 ln -sf ../init.d/bridge ${EXTDIR}/rc.d/stop/K81bridge
[003388c]27
28install-dropbear: create-dirs
29 install -m ${MODE} clfs/rc.d/init.d/sshd ${EXTDIR}/rc.d/init.d/
[79f7100]30 ln -sf ../init.d/sshd ${EXTDIR}/rc.d/start/S30sshd
31 ln -sf ../init.d/sshd ${EXTDIR}/rc.d/stop/K30sshd
[003388c]32
[884672b]33install-hostapd: create-dirs
34 install -m ${MODE} clfs/rc.d/init.d/hostapd ${EXTDIR}/rc.d/init.d
35 ln -sf ../init.d/hostapd ${EXTDIR}/rc.d/start/S08hostapd
36 ln -sf ../init.d/hostapd ${EXTDIR}/rc.d/stop/K82hostapd
37
[c05b9cf]38install-bcm47xx: create-dirs
39 install -m ${MODE} clfs/rc.d/init.d/bcm47xx-switch ${EXTDIR}/rc.d/init.d/
40 ln -sf ../init.d/bcm47xx-switch ${EXTDIR}/rc.d/start/S08bcm47xx-switch
41 ln -sf ../init.d/bcm47xx-switch ${EXTDIR}/rc.d/stop/K82bcm47xx-switch
42
[1933be2]43.PHONY: all create-dirs install install-dropbear install-bridge
Note: See TracBrowser for help on using the repository browser.