X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Finstall-bootscripts;h=b2595f332bce3d35a2f4528751699a5e9918a551;hb=cf3d9a3b194a6578c881cdd4eb528398d4de2741;hp=40894e016b1897c52e8651a770fa2726f03cfb60;hpb=f920c7ef750f2163b9e407cc453b192ede2c185a;p=hvlinux.git diff --git a/stage1/install-bootscripts b/stage1/install-bootscripts index 40894e0..b2595f3 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 tune 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 @@ -34,20 +31,24 @@ done bootscript_add_rcsysinit initlog 05 00 bootscript_add_rcsysinit hostname 10 00 bootscript_add_rcsysinit mountkernfs 15 00 +bootscript_add_rcsysinit tune 17 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 $?