--- elwix/build_romfs.sh 2013/07/29 14:12:46 1.6.2.4 +++ elwix/build_romfs.sh 2013/07/31 13:41:43 1.6.2.9 @@ -5,7 +5,7 @@ # (C) AITNET ltd - Sofia/Bulgaria # by Michael Pounov # -# $Id: build_romfs.sh,v 1.6.2.4 2013/07/29 14:12:46 misho Exp $ +# $Id: build_romfs.sh,v 1.6.2.9 2013/07/31 13:41:43 misho Exp $ # [ -r ./config/rc.elwix ] && . ./config/rc.elwix @@ -60,13 +60,19 @@ build_romfs() install -d elwix/altroot/var; install -d elwix/cf; install -d elwix/etc; + install -d -o 883 -g 883 elwix/etc/mqtt; install -d elwix/exports; install -d elwix/home; install -d -m 0750 elwix/root; install -d -m 0750 elwix/root/.ssh; install -d elwix/system; install -d elwix/tftpboot; - install -d elwix/var; + install -d elwix/pkg; + install -d elwix/pkg/bin; + install -d elwix/pkg/lib; + install -d elwix/pkg/libexec; + install -d elwix/pkg/libdata; + install -d elwix/pkg/sbin; ln -fs /elwix/etc etc; ln -fs /elwix/exports exports; ln -fs /elwix/home home; @@ -76,7 +82,7 @@ build_romfs() install -d mnt; install -d -m 0555 proc; install -d sbin; - install -d -m 1777 tmp; + install -d tmp; install -d usr; install -d usr/bin; install -d usr/lib; @@ -142,6 +148,8 @@ install_romfs() InstallList ${ELWIX_ROMFS} ${WORLD} ${ROMFS} + ln ${BIN}/tcsh ${UBIN}/tcsh + InstallDir ${WORLD}/usr/local/bin $UBIN InstallDir ${WORLD}/usr/local/sbin $USBIN InstallFiles \*.so\* ${WORLD}/usr/local/lib $LIBS @@ -205,7 +213,7 @@ build_romfs install_romfs -install_romfs2 -build_image2 +#install_romfs2 +#build_image2 echo "+++ Complete build ELWIX RomFS"