version 1.9.4.3, 2014/07/29 17:15:44
|
version 1.10.2.1, 2016/11/21 17:25:33
|
Line 32 fi
|
Line 32 fi
|
|
|
clean_fsdir() |
clean_fsdir() |
{ |
{ |
echo "+++ Clean ELWIX FS ..." | echo "+++ Clean ELWIX FS ... $1" |
chflags -Rf nosunlink $1 |
chflags -Rf nosunlink $1 |
rm -rf $1 $2 |
rm -rf $1 $2 |
} |
} |
|
|
build_fsdir() |
build_fsdir() |
{ |
{ |
echo "+++ Build ELWIX FS directory ..." | echo "+++ Build ELWIX FS directory ... $1" |
mkdir -p $1 |
mkdir -p $1 |
|
|
cd $1 |
cd $1 |
Line 76 build_fsdir()
|
Line 76 build_fsdir()
|
install -d cf; |
install -d cf; |
case ${TARGET} in |
case ${TARGET} in |
i386) |
i386) |
# 256KB for config map | ln -fs /dev/ada0g cf/map.cfg |
dd if=/dev/zero of=cf/map.cfg bs=65536 count=4 | |
chflags sunlink cf/map.cfg | |
;; |
;; |
mips) |
mips) |
ln -fs /dev/map/cfg cf/map.cfg |
ln -fs /dev/map/cfg cf/map.cfg |
Line 118 _EOF
|
Line 116 _EOF
|
|
|
install_fsdir() |
install_fsdir() |
{ |
{ |
echo "+++ Install ELWIX FS $1 in bundle OS install file ..." | echo "+++ Install ELWIX RootFS $1 in bundle OS install file ..." |
OSZ="" |
OSZ="" |
|
|
install -v ${REL}/${ROOTFS_KERN} $1/boot/kernel/kernel.gz |
install -v ${REL}/${ROOTFS_KERN} $1/boot/kernel/kernel.gz |
Line 158 install_fsdir()
|
Line 156 install_fsdir()
|
|
|
cd $1 |
cd $1 |
tar -czvf $OSZ . |
tar -czvf $OSZ . |
|
|
|
echo "+++ Completed ELWIX RootFS $1 --> $OSZ" |
} |
} |
|
|
### main() |
### main() |
Line 197 MakeFS_boot ${FS_EXT} || exit 1
|
Line 197 MakeFS_boot ${FS_EXT} || exit 1
|
install_fsdir ${FS} || exit 1 |
install_fsdir ${FS} || exit 1 |
install_fsdir ${FS_EXT} ext || exit 1 |
install_fsdir ${FS_EXT} ext || exit 1 |
|
|
echo "+++ Complete build ELWIX FS" | echo "+++ Complete build ELWIX RootFS system" |
echo "ELWIX finish version ${VERSION}, Good luck!" | echo "ELWIX RootFS finish version ${VERSION}, Good luck!" |