removed lfs-commands
[linux_from_scratch.git] / bootscripts / makesymlinks
blobecf413c5392d341f98685e3bb48916df4dfc0e0c
1 #!/bin/sh
3 echo "Creating rc*.d directories..."
4 mkdir -p rc.d/rc{0,1,2,3,4,5,6,sysinit}.d
6 echo "Making symlinks in rc.d/rc0.d..." &&
7 cd rc.d/rc0.d &&
8 ln -s ../init.d/sysklogd K40sysklogd &&
9 ln -s ../init.d/sendsignals K50sendsignals &&
10 ln -s ../init.d/mountfs K60mountfs &&
11 ln -s ../init.d/swap K70swap &&
12 ln -s ../init.d/network K80network &&
13 ln -s ../init.d/localnet K90localnet &&
14 ln -s ../init.d/halt K99halt &&
16 echo "Making symlinks in rc.d/rc1.d..." &&
17 cd ../rc1.d &&
18 ln -s ../init.d/sysklogd K80sysklogd &&
19 ln -s ../init.d/network K90network &&
21 echo "Making symlinks in rc.d/rc2.d..." &&
22 cd ../rc2.d &&
23 ln -s ../init.d/network K90network &&
24 ln -s ../init.d/sysklogd S10sysklogd &&
26 echo "Making symlinks in rc.d/rc3.d..." &&
27 cd ../rc3.d &&
28 ln -s ../init.d/sysklogd S10sysklogd &&
29 ln -s ../init.d/network S20network &&
31 echo "Making symlinks in rc.d/rc4.d..." &&
32 cd ../rc4.d &&
33 ln -s ../init.d/sysklogd S10sysklogd &&
34 ln -s ../init.d/network S20network &&
36 echo "Making symlinks in rc.d/rc5.d..." &&
37 cd ../rc5.d &&
38 ln -s ../init.d/sysklogd S10sysklogd &&
39 ln -s ../init.d/network S20network &&
41 echo "Making symlinks in rc.d/rc6.d..." &&
42 cd ../rc6.d &&
43 ln -s ../init.d/sysklogd K40sysklogd &&
44 ln -s ../init.d/sendsignals K50sendsignals &&
45 ln -s ../init.d/mountfs K60mountfs &&
46 ln -s ../init.d/swap K70swap &&
47 ln -s ../init.d/network K80network &&
48 ln -s ../init.d/localnet K90localnet &&
49 ln -s ../init.d/reboot K99reboot &&
51 echo "Making symlinks in rc.d/rcsysinit.d..."
52 cd ../rcsysinit.d &&
53 ln -s ../init.d/swap S10swap &&
54 ln -s ../init.d/mountproc S20mountproc &&
55 ln -s ../init.d/checkfs S30checkfs &&
56 ln -s ../init.d/mountfs S40mountfs &&
57 ln -s ../init.d/cleanfs S50cleanfs &&
58 ln -s ../init.d/setclock S60setclock &&
59 ln -s ../init.d/loadkeys S70loadkeys &&
60 ln -s ../init.d/localnet S80localnet &&
62 echo "Done."