home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume21
/
amd
/
part01
/
scripts
/
build-userinfo
< prev
next >
Wrap
Text File
|
1990-04-10
|
929b
|
34 lines
#!/bin/sh -
#
# $Id: build-userinfo,v 5.1 89/11/17 18:24:12 jsp Exp Locker: jsp $
#
# Copyright (C) 1989 by Jan-Simon Pendry
# All Rights Reserved.
#
# Construct the amd.home and amd.homes maps for /home and /homes.
#
# First call "get-homes" which will locate a list of user home directories.
# Then call mk-home-maps which takes the list of directories and a list
# of disk partition information and constructs the amd maps.
#
if get-homes home-dirs && mk-home-maps home-dirs home-parts; then
#
# So far so good...
# Now rename the files, appending the .copyin files
# if they exist
#
auto-banner | tee amd.homes amd.home > /dev/null
if [ -f amd.homes.copyin ]; then
cat home-dirs.cf amd.homes.copyin >> amd.homes
else
cat home-dirs.cf >> amd.homes
fi
rm home-dirs.cf
if [ -f amd.home.copyin ]; then
cat home-parts.cf amd.home.copyin >> amd.home
else
cat home-parts.cf >> amd.home
fi
rm home-parts.cf
fi