version 1.3.2.16, 2012/10/11 13:51:22
|
version 1.6, 2013/01/28 10:42:47
|
Line 33 fi
|
Line 33 fi
|
clean_fsdir() |
clean_fsdir() |
{ |
{ |
echo "+++ Clean ELWIX FS ..." |
echo "+++ Clean ELWIX FS ..." |
rm -rf ${FS} ${FS_LITE} | rm -rf ${FS} ${FS_LITE} ${FS_LITE128} |
|
|
echo "+++ Clean ELWIX FS release ..." |
echo "+++ Clean ELWIX FS release ..." |
rm -rf ${REL}/${OS} ${REL}/${OS_LITE} | rm -rf ${REL}/${OS} ${REL}/${OS_LITE} ${REL}/${OS_LITE128} |
} |
} |
|
|
build_fsdir() |
build_fsdir() |
Line 123 mkvar()
|
Line 123 mkvar()
|
echo "+++ Build ELWIX FS var directory ..." |
echo "+++ Build ELWIX FS var directory ..." |
ln -s /tmp $1/altroot/var/tmp |
ln -s /tmp $1/altroot/var/tmp |
|
|
|
touch $1/altroot/var/run/utmp |
|
|
|
touch $1/altroot/var/account/acct |
|
|
touch $1/altroot/var/log/elwix |
touch $1/altroot/var/log/elwix |
touch $1/altroot/var/log/lastlog |
touch $1/altroot/var/log/lastlog |
touch $1/altroot/var/log/wifi.log |
touch $1/altroot/var/log/wifi.log |
touch $1/altroot/var/log/wtmp | touch $1/altroot/var/log/utx.log |
touch $1/altroot/var/run/utmp | |
touch $1/altroot/var/account/acct | |
|
|
touch $1/altroot/var/log/auth.log |
touch $1/altroot/var/log/auth.log |
touch $1/altroot/var/log/cron |
touch $1/altroot/var/log/cron |
touch $1/altroot/var/log/console.log |
touch $1/altroot/var/log/console.log |
touch $1/altroot/var/log/debug.log |
touch $1/altroot/var/log/debug.log |
|
touch $1/altroot/var/log/init.log |
touch $1/altroot/var/log/lpd-errs |
touch $1/altroot/var/log/lpd-errs |
touch $1/altroot/var/log/maillog |
touch $1/altroot/var/log/maillog |
touch $1/altroot/var/log/messages |
touch $1/altroot/var/log/messages |
Line 246 install_fsdir()
|
Line 249 install_fsdir()
|
|
|
install -v ${REL}/${ROOTFS_KERN} $1/boot/kernel |
install -v ${REL}/${ROOTFS_KERN} $1/boot/kernel |
|
|
if [ -z "$2" ]; then | case "$2" in |
install -v ${REL}/${ROMFS_IMG} $1/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH} | _[Ll][Ii][Tt][Ee]_128) |
ln $1/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH} $1/altroot/${ROMFS_IMG} | install -d $1/usr |
ln -s /elwix/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH} $1/${ROMFS_IMG} | cd $1/usr |
| pax -r -z -pe -f ${REL}/${ROMFS_IMG} |
| cd - |
|
|
install -v ${REL}/${ROMFS_IMG2} $1/altroot/elwix-firmware2-${VERSION}_${TARGET_ARCH} | install -d $1/usr/local |
ln $1/altroot/elwix-firmware2-${VERSION}_${TARGET_ARCH} $1/altroot/${ROMFS_IMG2} | cd $1/usr/local |
ln -s /elwix/altroot/elwix-firmware2-${VERSION}_${TARGET_ARCH} $1/${ROMFS_IMG2} | pax -r -z -pe -f ${REL}/${ROMFS_IMG2} |
| cd - |
|
|
OSZ=${REL}/${OS} | OSZ=${REL}/${OS_LITE128} |
else | ;; |
install -d $1/usr | _[Ll][Ii][Tt][Ee]) |
cd $1/usr | install -d $1/usr |
pax -r -z -pe -f ${REL}/${ROMFS_IMG} | cd $1/usr |
cd - | pax -r -z -pe -f ${REL}/${ROMFS_IMG} |
| cd - |
|
|
OSZ=${REL}/${OS_LITE} | OSZ=${REL}/${OS_LITE} |
fi | ;; |
| *) |
| install -v ${REL}/${ROMFS_IMG} \ |
| $1/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH} |
| ln $1/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH} \ |
| $1/altroot/${ROMFS_IMG} |
| ln -s /elwix/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH} \ |
| $1/${ROMFS_IMG} |
|
|
|
install -v ${REL}/${ROMFS_IMG2} \ |
|
$1/altroot/elwix-firmware2-${VERSION}_${TARGET_ARCH} |
|
ln $1/altroot/elwix-firmware2-${VERSION}_${TARGET_ARCH} \ |
|
$1/altroot/${ROMFS_IMG2} |
|
ln -s /elwix/altroot/elwix-firmware2-${VERSION}_${TARGET_ARCH} \ |
|
$1/${ROMFS_IMG2} |
|
|
|
OSZ=${REL}/${OS} |
|
;; |
|
esac |
|
|
cd $1 |
cd $1 |
tar -czvf $OSZ . |
tar -czvf $OSZ . |
} |
} |
Line 283 clean_fsdir
|
Line 308 clean_fsdir
|
|
|
build_fsdir ${FS} |
build_fsdir ${FS} |
build_fsdir ${FS_LITE} |
build_fsdir ${FS_LITE} |
|
build_fsdir ${FS_LITE128} |
|
|
mkboot ${FS} |
mkboot ${FS} |
mkboot ${FS_LITE} |
mkboot ${FS_LITE} |
|
mkboot ${FS_LITE128} |
|
|
mkhome ${FS} |
mkhome ${FS} |
mkhome ${FS_LITE} |
mkhome ${FS_LITE} |
|
mkhome ${FS_LITE128} |
|
|
mkvar ${FS} |
mkvar ${FS} |
mkvar ${FS_LITE} |
mkvar ${FS_LITE} |
|
mkvar ${FS_LITE128} |
|
|
mketc ${FS} |
mketc ${FS} |
mketc ${FS_LITE} "_lite" |
mketc ${FS_LITE} "_lite" |
|
mketc ${FS_LITE128} "_lite_128" |
|
|
mkbackup ${FS} |
mkbackup ${FS} |
mkbackup ${FS_LITE} |
mkbackup ${FS_LITE} |
|
mkbackup ${FS_LITE128} |
|
|
install_fsdir ${FS} |
install_fsdir ${FS} |
install_fsdir ${FS_LITE} "_lite" |
install_fsdir ${FS_LITE} "_lite" |
|
install_fsdir ${FS_LITE128} "_lite_128" |
|
|
echo "+++ Complete build ELWIX FS" |
echo "+++ Complete build ELWIX FS" |
echo "ELWIX finish version ${VERSION}, Good luck!" |
echo "ELWIX finish version ${VERSION}, Good luck!" |