version 1.6.2.2, 2013/07/31 16:05:36
|
version 1.6.2.6, 2013/08/05 11:45:50
|
Line 66 MakeFS_var()
|
Line 66 MakeFS_var()
|
install -d -o 883 -g 883 altroot/var/mqtt; |
install -d -o 883 -g 883 altroot/var/mqtt; |
install -d altroot/var/named; |
install -d altroot/var/named; |
install -d altroot/var/run; |
install -d altroot/var/run; |
install -d altroot/var/sys; | install -d altroot/var/frm; |
install -d -o 53 -g 53 altroot/var/run/named; |
install -d -o 53 -g 53 altroot/var/run/named; |
install -d -o 101 -g 101 altroot/var/run/quagga; |
install -d -o 101 -g 101 altroot/var/run/quagga; |
install -d altroot/var/spool; |
install -d altroot/var/spool; |
Line 151 MakeFS_etc()
|
Line 151 MakeFS_etc()
|
|
|
CleanCVS $1 |
CleanCVS $1 |
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 |