version 1.6.2.2, 2013/07/31 16:05:36
|
version 1.6.2.5, 2013/07/31 16:21:40
|
Line 153 MakeFS_etc()
|
Line 153 MakeFS_etc()
|
CleanCVS $1/etc |
CleanCVS $1/etc |
} |
} |
|
|
|
# $1 = fs/elwix |
|
MakeFS_home() |
|
{ |
|
install -d $1/root/.ssh |
|
[ -r ${CFGDIR}/root.skel/ssh/authorized_keys2 ] && \ |
|
install -v ${CFGDIR}/root.skel/ssh/authorized_keys2 $1/root/.ssh; |
|
|
|
install -v ${CFGDIR}/root.skel/cshrc $1/root/.cshrc; |
|
install -v ${CFGDIR}/root.skel/login $1/root/.login; |
|
install -v ${CFGDIR}/root.skel/logout $1/root/.logout; |
|
install -v ${CFGDIR}/root.skel/profile $1/root/.profile; |
|
install -v ${CFGDIR}/root.skel/vimrc $1/root/.vimrc; |
|
} |
|
|
|
# $1 = fs/elwix |
|
MakeFS_backup() |
|
{ |
|
mkdir -p $1/altroot/backup |
|
|
|
cd $1 |
|
cp -p etc/config.xml altroot/backup |
|
tar -czf altroot/backup/.etc.tgz etc |
|
|
|
cd altroot |
|
tar -czf backup/.var.tgz var |
|
} |
|
|
|
# $1 = fs |
|
MakeFS_boot() |
|
{ |
|
InstallDir ${WORLD}/boot $1/boot |
|
|
|
install -m 644 ${CFGDIR}/boot/boot.config $1; |
|
|
|
install -m 444 ${CFGDIR}/boot/beastie.4th $1/boot; |
|
install -m 444 ${CFGDIR}/boot/brand.4th $1/boot; |
|
install -m 444 ${CFGDIR}/boot/menu.4th $1/boot; |
|
|
|
install -m 444 ${KERNDEVHINTS} $1/boot/device.hints; |
|
|
|
if [ -r ${CFGDIR}/boot/loader_${TARGET_ARCH}.conf ]; then |
|
install -m 644 ${CFGDIR}/boot/loader_${TARGET_ARCH}.conf $1/boot/loader.conf; |
|
else |
|
echo; |
|
echo "Can't find right loader.conf for TARGET_ARCH=${TARGET_ARCH} ... loader.conf not installed!"; |
|
echo; |
|
fi; |
|
} |
|
|
# $1 = ELWIX install list config |
# $1 = ELWIX install list config |
# $2 = From World dir |
# $2 = From World dir |
# $3 = To Dest dir |
# $3 = To Dest dir |