X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Finstall-bootscripts;h=15f22e825a3c501795536f1abc9e0b0972a35653;hb=085c7444d60ccd8512e49df7dfa6410934b86510;hp=40894e016b1897c52e8651a770fa2726f03cfb60;hpb=2ad910e22979500192ea43d5599ad003440744a4;p=hvlinux.git diff --git a/stage1/install-bootscripts b/stage1/install-bootscripts index 40894e0..15f22e8 100755 --- a/stage1/install-bootscripts +++ b/stage1/install-bootscripts @@ -1,9 +1,6 @@ #!/bin/bash -# Reading system configuration informations, functions and package versions. -source ../config/sysinfos -source ../functions -source ../config/packages-list +source ../functions/main # Clock settings cat > ${LFS}/etc/sysconfig/clock << "EOF" @@ -12,10 +9,10 @@ EOF # Copying boot scripts STAGE1_BOOTSCRIPTS="checkfs cleanfs functions halt hostname initlog modules mountfs \ - mountkernfs rc reboot sendsignals setclock swap udev" + mountkernfs rc reboot sendsignals swap udev" mkdir -p ${LFS}/etc/rc.d/init.d for bootscript in ${STAGE1_BOOTSCRIPTS}; do - install -m755 bootscripts/${bootscript} ${LFS}/etc/rc.d/init.d + install -v -m755 bootscripts/${bootscript} ${LFS}/etc/rc.d/init.d done # Creating runlevels links @@ -37,17 +34,20 @@ bootscript_add_rcsysinit mountkernfs 15 00 bootscript_add_rcsysinit modules 20 00 bootscript_add_rcsysinit udev 25 00 bootscript_add_rcsysinit checkfs 30 00 -bootscript_add_rcsysinit mountfs 35 95 -bootscript_add_rcsysinit swap 40 94 +bootscript_add_rcsysinit mountfs 35 00 +bootscript_add_rcsysinit swap 40 00 bootscript_add_rcsysinit cleanfs 45 00 -bootscript_add_rcsysinit setclock 60 92 # rc0.d -bootscript_add_manual 0 sendsignals 95 00 +bootscript_add_manual 0 sendsignals 60 00 +bootscript_add_manual 0 swap 65 00 +bootscript_add_manual 0 mountfs 70 00 bootscript_add_manual 0 halt 99 00 # rc6.d is almost identical to rc0.d -bootscript_add_manual 6 sendsignals 95 00 +bootscript_add_manual 6 sendsignals 60 00 +bootscript_add_manual 6 swap 65 00 +bootscript_add_manual 6 mountfs 70 00 bootscript_add_manual 6 reboot 99 00 exit $?