Browse Source

Welcome to the world of distribution portability.

master
freesource 22 years ago
parent
commit
08fe16db4c
  1. 41
      yard/templates/Example.yard
  2. 32
      yard/templates/Helper.yard

41
yard/templates/Example.yard

@ -1,4 +1,4 @@
# $Id: Example.yard,v 1.16 2001/12/14 04:34:46 freesource Exp $ # $Id: Example.yard,v 1.17 2002/02/08 04:15:23 freesource Exp $
# Example.yard # Example.yard
# #
# Creates a minimalistic multi-user runlevel root filesystem with getty. # Creates a minimalistic multi-user runlevel root filesystem with getty.
@ -148,6 +148,10 @@ telinit
# PROVISIONS FOR PAM: # PROVISIONS FOR PAM:
/etc/pam.d/other /etc/pam.d/other
/etc/pam.d/login /etc/pam.d/login
\ if ( /etc/pam.d/system-auth )
# RedHat uses this
/etc/pam.d/system-auth \
# /etc/pam.conf # /etc/pam.conf
# PROVISIONS FOR NSS # PROVISIONS FOR NSS
@ -167,21 +171,34 @@ telinit
# #
#===== DEBIAN uses a program called "getty" which is actually agetty in #===== DEBIAN uses a program called "getty" which is actually agetty in
#===== disguise: #===== disguise:
/etc/inittab <= Replacements/etc/inittab.example-deb
#/etc/inittab <= Replacements/etc/inittab.example-deb-nodevfs \
/sbin/getty if ( getty )
/etc/inittab <= Replacements/etc/inittab.example-deb
#/etc/inittab <= Replacements/etc/inittab.example-deb-nodevfs
/sbin/getty
# #
#===== MANDRAKE, REDHAT and many other modern RH based DISTS use mingetty: #===== MANDRAKE, REDHAT and many other modern RH based DISTS use mingetty:
#/etc/inittab <= Replacements/etc/inittab.example.mingetty-rpm
#/etc/inittab <= Replacements/etc/inittab.example.mingetty-rpm-nodevfs elsif ( mingetty )
#/sbin/mingetty
#/etc/gettydefs /etc/inittab <= Replacements/etc/inittab.example.mingetty-rpm
#/etc/inittab <= Replacements/etc/inittab.example.mingetty-rpm-nodevfs
/sbin/mingetty
/etc/gettydefs
# #
#===== SLACKWARE uses agetty: #===== SLACKWARE uses agetty:
#/etc/inittab <= Replacements/etc/inittab.example.agetty-slack
#/etc/inittab <= Replacements/etc/inittab.example.agetty-slack-nodevfs elsif ( agetty )
#/sbin/agetty
#/etc/gettydefs /etc/inittab <= Replacements/etc/inittab.example.agetty-slack
#/etc/inittab <= Replacements/etc/inittab.example.agetty-slack-nodevfs
/sbin/agetty
/etc/gettydefs
\
# Devices - If devfs isn't desired use the kernel option devfs=nomount # Devices - If devfs isn't desired use the kernel option devfs=nomount
/dev/console /dev/console

32
yard/templates/Helper.yard

@ -1,4 +1,4 @@
# $Id$ # $Id: Helper.yard,v 1.2 2002/12/12 01:10:23 freesource Exp $
# Helper.yard # Helper.yard
# #
############################################################################# #############################################################################
@ -79,6 +79,9 @@ telinit
# PROVISIONS FOR PAM: # PROVISIONS FOR PAM:
/etc/pam.d/other /etc/pam.d/other
/etc/pam.d/login /etc/pam.d/login
\ if ( /etc/pam.d/system-auth )
# RedHat uses this
/etc/pam.d/system-auth \
# /etc/pam.conf # /etc/pam.conf
# PROVISIONS FOR NSS # PROVISIONS FOR NSS
@ -99,9 +102,30 @@ telinit
#===== DEBIAN uses a program called "getty" which is actually agetty in #===== DEBIAN uses a program called "getty" which is actually agetty in
#===== disguise: #===== disguise:
## The only difference here is that there is only one getty. \
/etc/inittab <= Replacements/etc/inittab.example-helper if ( getty )
/sbin/getty /etc/inittab <= Replacements/etc/inittab.example-helper
/sbin/getty
#
#===== MANDRAKE, REDHAT and many other modern RH based DISTS use mingetty:
elsif ( mingetty )
/etc/inittab <= Replacements/etc/inittab.example-mingetty-helper
/sbin/mingetty
/etc/gettydefs
#
#===== SLACKWARE uses agetty:
elsif ( agetty )
/etc/inittab <= Replacements/etc/inittab.example-agetty-helper
/sbin/agetty
/etc/gettydefs
\
##### utmp and wtmp. ##### utmp and wtmp.
# Made by rcS if they don't exist. # Made by rcS if they don't exist.

Loading…
Cancel
Save