lfs-execline-scripts

Repository for execline scripts used in my linux-from-scratch builds
Log | Files | Refs

rc.init (567B)


      1 #!/usr/bin/execlineb
      2 #importas -S PATH
      3 define PATH "/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin"
      4 
      5 background { printf "Starting Suckless' init!\n\nMounting from /etc/fstab...\n" }
      6 foreground { mount -a }
      7 
      8 foreground { /bin/rc.mounts }
      9 
     10 background { printf "Mounting swap devices...\n" }
     11 foreground { swapon -a }
     12 
     13 background { printf "Setting up hostname...\n" }
     14 foreground {
     15   if { eltest $hostname }
     16     { 
     17       redirfd -w 1 /proc/sys/kernel/hostname { echo ${hostname} } 
     18     }
     19 }
     20 background { printf "Starting svc services...\n" }
     21 exec { svc -s }