version 1.11.2.2, 2017/06/16 13:41:05
|
version 1.11.2.9, 2018/01/02 01:38:18
|
Line 39 clean_fsdir()
|
Line 39 clean_fsdir()
|
|
|
build_fsdir() |
build_fsdir() |
{ |
{ |
|
# |
|
# Structure of ELWIX CF Drive mount on /elwix |
|
# |
echo "+++ Build ELWIX FS directory ... $1" |
echo "+++ Build ELWIX FS directory ... $1" |
mkdir -p $1 |
mkdir -p $1 |
|
|
Line 47 build_fsdir()
|
Line 50 build_fsdir()
|
install -d boot; |
install -d boot; |
# cf |
# cf |
install -d cf; |
install -d cf; |
case ${TARGET} in |
|
i386) |
|
ln -fs /dev/ada0g cf/map.cfg |
|
;; |
|
mips) |
|
ln -fs /dev/map/cfg cf/map.cfg |
|
;; |
|
esac |
|
# etc |
# etc |
install -d etc; |
install -d etc; |
install -d -o 883 -g 883 etc/mqtt; |
|
# exports |
# exports |
install -d exports; |
install -d exports; |
# home |
# home |
install -d home; |
install -d home; |
# local |
# local |
install -d local; |
install -d local; |
|
install -d local/lib; |
# root |
# root |
install -d -m 0750 root; |
install -d -m 0750 root; |
# pkg |
# pkg |
Line 80 create_etc_fstab()
|
Line 75 create_etc_fstab()
|
cat >$1/etc/fstab <<_EOF |
cat >$1/etc/fstab <<_EOF |
# Automatic generated fstab for ELWIX $2 at ${BUILD_DATE} |
# Automatic generated fstab for ELWIX $2 at ${BUILD_DATE} |
# |
# |
/dev/ufs/elwix /elwix ufs ro 0 1 |
|
_EOF |
_EOF |
} |
} |
|
|
Line 103 install_fsdir()
|
Line 97 install_fsdir()
|
pax -r -z -pe -f ${REL}/${ROMFS_IMG} |
pax -r -z -pe -f ${REL}/${ROMFS_IMG} |
cd - |
cd - |
|
|
install -d $1/usr/pkg | install -d $1/pkg |
cd $1/usr/pkg | cd $1/pkg |
pax -r -z -pe -f ${REL}/${ROMFS_IMG2} |
pax -r -z -pe -f ${REL}/${ROMFS_IMG2} |
cd - |
cd - |
|
|
Line 165 create_etc_fstab ${FS_EXT} ext || exit 1
|
Line 159 create_etc_fstab ${FS_EXT} ext || exit 1
|
|
|
update_etc_cfexec ${FS} || exit 1 |
update_etc_cfexec ${FS} || exit 1 |
update_etc_cfexec ${FS_EXT} ext || exit 1 |
update_etc_cfexec ${FS_EXT} ext || exit 1 |
|
|
MakeFS_backup ${FS} || exit 1 |
|
MakeFS_backup ${FS_EXT} || exit 1 |
|
|
|
MakeFS_boot ${FS} || exit 1 |
MakeFS_boot ${FS} || exit 1 |
MakeFS_boot ${FS_EXT} || exit 1 |
MakeFS_boot ${FS_EXT} || exit 1 |