1 # hdw - linux 00-small-base-conf package
3 # author: hackbard@hackdaworld.dyndns.org
11 if [ "$hdw_status" = "1" ] ; then
13 for i in bash pwd cat stty; do
14 ln -sf ../$s1_prefix/bin/$i $root/bin/$i
16 ln -sf bash $root/bin/sh
17 ln -sf ../../$s1_prefix/bin/perl $root/usr/bin/perl
22 chown -R 0:0 $root/[!p]*
25 cp -v ${hdw_home_dir}/misc/sysfiles/etc/passwd $root/etc
26 cp -v ${hdw_home_dir}/misc/sysfiles/etc/group $root/etc
27 cp -v ${hdw_home_dir}/misc/sysfiles/etc/shadow $root/etc
28 chmod 644 $root/etc/{passwd,group}
29 chmod 640 $root/etc/shadow && chown 0:0 $root/etc/shadow
31 # we want mtab to be up2date
32 ln -fs /proc/mounts $root/etc/mtab
34 # arbitary timezone needed for some packages to build properly
35 ln -sfv ../usr/share/zoneinfo/Europe/Berlin $root/etc/localtime