version 1.7.2.4, 2013/07/31 13:17:53
|
version 1.7.2.7, 2013/07/31 14:57:01
|
Line 37 clean_rel()
|
Line 37 clean_rel()
|
|
|
mkdir -p $1 |
mkdir -p $1 |
|
|
cd ${ROMFS} | if [ -d ${BASEFS} ]; then |
pax -rw -pe -X . $1 | cd ${BASEFS} |
cd - | pax -rw -pe -X . $1 |
| cd - |
| fi |
} |
} |
|
|
build_vardir() |
build_vardir() |
Line 65 build_vardir()
|
Line 67 build_vardir()
|
install -d -o 883 -g 883 altroot/var/mqtt; |
install -d -o 883 -g 883 altroot/var/mqtt; |
install -d altroot/var/named; |
install -d altroot/var/named; |
install -d altroot/var/run; |
install -d altroot/var/run; |
install -d -m 1777 altroot/var/tmp; |
|
install -d altroot/var/sys; |
install -d altroot/var/sys; |
install -d -o 53 -g 53 altroot/var/run/named; |
install -d -o 53 -g 53 altroot/var/run/named; |
install -d -o 101 -g 101 altroot/var/run/quagga; |
install -d -o 101 -g 101 altroot/var/run/quagga; |
Line 206 mkbackup()
|
Line 207 mkbackup()
|
|
|
cd $1 |
cd $1 |
cp -p etc/config.xml altroot/backup |
cp -p etc/config.xml altroot/backup |
# tar -czf altroot/backup/.etc.tgz etc | tar -czf altroot/backup/.etc.tgz etc |
|
|
# cd altroot | cd altroot |
# tar -czf backup/.var.tgz var | tar -czf backup/.var.tgz var |
} |
} |
|
|
mkhome() |
mkhome() |
Line 237 install_rel()
|
Line 238 install_rel()
|
cd -; |
cd -; |
|
|
case "$2" in |
case "$2" in |
_128) |
|
install -d $1/usr/local |
|
cd $1/usr/local |
|
pax -r -z -pe -f ${REL}/${ROMFS_IMG2} |
|
cd - |
|
|
|
OSZ=${REL}/${OS_128} |
|
;; |
|
*) |
*) |
OSZ=${REL}/${OS} |
OSZ=${REL}/${OS} |
;; |
;; |
Line 255 install_rel()
|
Line 248 install_rel()
|
} |
} |
|
|
### main() |
### main() |
if [ ! -r ${REL}/${ROOTFS_KERN} -o ! -r ${REL}/${ROMFS_IMG} ]; then |
|
echo |
|
echo "Error:: not found kernel or firmware elwix files ..." |
|
echo |
|
echo " For fix this issue, please re-run build_rootfs.sh or build_romfs.sh" |
|
echo |
|
exit 1 |
|
fi |
|
|
|
clean_rel ${FS} ${REL}/${OS} |
clean_rel ${FS} ${REL}/${OS} |
build_vardir ${FS}/elwix |
build_vardir ${FS}/elwix |
mkhome ${FS}/elwix |
mkhome ${FS}/elwix |