talimat 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Tanım: Programs for controlling the startup, running, and shutdown of the system.
  2. # URL: ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/
  3. # Paketçi: milisarge
  4. # Gerekler:
  5. isim=sysvinit
  6. surum=2.88dsf
  7. devir=2
  8. kaynak=(http://ftp.twaren.net/Unix/NonGNU/sysvinit/sysvinit-$surum.tar.bz2
  9. http://www.linuxfromscratch.org/patches/lfs/development/sysvinit-2.88dsf-consolidated-1.patch)
  10. derle()
  11. {
  12. cd sysvinit-$surum
  13. patch -Np1 -i ../sysvinit-2.88dsf-consolidated-1.patch
  14. make -C src
  15. mkdir -p $PKG/{sbin,bin,usr/{bin,include,share/man/man{1,5,8}}}
  16. make -C src ROOT=$PKG install
  17. rm -r $PKG/usr/bin
  18. rm -r $PKG/usr/share/man/man1
  19. mkdir $PKG/etc
  20. cat > $PKG/etc/inittab << "EOF"
  21. # Begin /etc/inittab
  22. # id:3 (defaut si installation de base)
  23. # lxdm, sddm ou kdm: id:5
  24. id:3:initdefault:
  25. si::sysinit:/etc/rc.d/init.d/rc S
  26. l0:0:wait:/etc/rc.d/init.d/rc 0
  27. l1:S1:wait:/etc/rc.d/init.d/rc 1
  28. l2:2:wait:/etc/rc.d/init.d/rc 2
  29. l3:3:wait:/etc/rc.d/init.d/rc 3
  30. l4:4:wait:/etc/rc.d/init.d/rc 4
  31. l5:5:wait:/etc/rc.d/init.d/rc 5
  32. l6:6:wait:/etc/rc.d/init.d/rc 6
  33. ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -h now
  34. su:S016:once:/sbin/sulogin
  35. 1:2345:respawn:/sbin/agetty --noclear tty1 9600
  36. 2:2345:respawn:/sbin/agetty tty2 9600
  37. 3:2345:respawn:/sbin/agetty tty3 9600
  38. 4:2345:respawn:/sbin/agetty tty4 9600
  39. 5:2345:respawn:/sbin/agetty tty5 9600
  40. 6:2345:respawn:/sbin/agetty tty6 9600
  41. # End /etc/inittab
  42. EOF
  43. }