version 1.1.2.1, 2011/07/21 13:05:09
|
version 1.1.2.5, 2011/07/25 13:03:51
|
Line 74 build_fsdir()
|
Line 74 build_fsdir()
|
install -d -g daemon altroot/var/spool/output/lpd; |
install -d -g daemon altroot/var/spool/output/lpd; |
# boot |
# boot |
install -d boot; |
install -d boot; |
install -d boot/defaults; |
|
install -d boot/firmware; |
|
install -d boot/kernel; |
|
install -d boot/modules; |
|
install -d boot/zfs; |
|
# cf |
# cf |
install -d cf; |
install -d cf; |
# etc |
# etc |
Line 105 mkboot()
|
Line 100 mkboot()
|
|
|
install -m 644 ${CFGDIR}/boot/boot.config $1; |
install -m 644 ${CFGDIR}/boot/boot.config $1; |
install -m 644 ${CFGDIR}/boot/beastie.4th $1/boot; |
install -m 644 ${CFGDIR}/boot/beastie.4th $1/boot; |
|
install -m 644 ${CFGDIR}/boot/brand.4th $1/boot; |
|
|
if [ -r ${CFGDIR}/boot/loader_${TARGET_ARCH}.conf ]; then |
if [ -r ${CFGDIR}/boot/loader_${TARGET_ARCH}.conf ]; then |
install -m 644 ${CFGDIR}/boot/loader_${TARGET_ARCH}.conf $1/boot/loader.conf; |
install -m 644 ${CFGDIR}/boot/loader_${TARGET_ARCH}.conf $1/boot/loader.conf; |
Line 201 mketc()
|
Line 197 mketc()
|
|
|
mkbackup() |
mkbackup() |
{ |
{ |
echo "+++ Build elwix fs backup factory default directory ..." | echo "+++ Build ELWIX FS backup factory default directory ..." |
mkdir -p $1/altroot/backup |
mkdir -p $1/altroot/backup |
|
|
cd $1 |
cd $1 |
Line 209 mkbackup()
|
Line 205 mkbackup()
|
cp -p etc/config.xml altroot/backup |
cp -p etc/config.xml altroot/backup |
cd altroot |
cd altroot |
tar -czf backup/.var.tgz var |
tar -czf backup/.var.tgz var |
cd $TOPDIR |
|
} |
} |
|
|
mkhome() |
mkhome() |
Line 228 mkhome()
|
Line 223 mkhome()
|
|
|
install_fsdir() |
install_fsdir() |
{ |
{ |
echo "+++ Install elwix fs in bundle OS install file ..." | echo "+++ Install ELWIX FS in bundle OS install file ..." |
|
|
sed -nE -e 's/^ *([^ #]+) */\1/p' < $ELWIX_FS | tr ':' '\n' | | install -v ${REL}/${ROOTFS_KERN} ${FS}/boot/kernel |
tar -C / -cvf - -T - | tar -C $FS -x -f - | |
|
|
install -v $REL/$ROOTFS_KERN $FS/boot/kernel | install -v ${REL}/${ROMFS_IMG} ${FS}/elwix-firmware-${VERSION}_${TARGET_ARCH} |
| ln -s /elwix/elwix-firmware-${VERSION}_${TARGET_ARCH} ${FS}/${ROMFS_IMG} |
|
|
install -v $REL/$FW_IMG $FS/elwix-firmware_$VERSION |
|
ln -s /elwix/elwix-firmware_$VERSION $FS/$FW_IMG |
|
|
|
cd $FS |
cd $FS |
tar -czvf $REL/$OS . | tar -czvf ${REL}/${OS} . |
cd $TOPDIR | |
} |
} |
|
|
|
cleancvs() |
|
{ |
|
echo "+++ ELWIX clean CVS tags ..." |
|
|
|
find $1 -type d -name CVS -exec rm -rf {} \; >/dev/null 2>&1 |
|
} |
|
|
### main() |
### main() |
if [ ! -r ${REL}/${ROOTFS_KERN} -o ! -r ${REL}/${ROMFS_IMG} ]; then |
if [ ! -r ${REL}/${ROOTFS_KERN} -o ! -r ${REL}/${ROMFS_IMG} ]; then |
echo |
echo |
Line 260 mkboot ${FS}
|
Line 258 mkboot ${FS}
|
mkhome ${FS} |
mkhome ${FS} |
mkvar ${FS} |
mkvar ${FS} |
mketc ${FS} |
mketc ${FS} |
#mkbackup $FS | cleancvs ${FS} |
| mkbackup ${FS} |
|
|
#install_fsdir | install_fsdir |
|
|
echo "+++ Complete build ELWIX FS" |
echo "+++ Complete build ELWIX FS" |
echo "ELWIX finish version ${VERSION}, Good luck!" |
echo "ELWIX finish version ${VERSION}, Good luck!" |