version 1.3.2.5, 2012/03/20 16:12:44
|
version 1.3.2.9, 2012/10/10 09:22:08
|
Line 54 build_fsdir()
|
Line 54 build_fsdir()
|
install -d altroot/var/at; |
install -d altroot/var/at; |
install -d altroot/var/at/jobs; |
install -d altroot/var/at/jobs; |
install -d altroot/var/at/spool; |
install -d altroot/var/at/spool; |
install -d -g authpf -m 0770 altroot/var/authpf; | install -d -g 63 -m 0770 altroot/var/authpf; |
install -d -m 0750 altroot/var/cron; |
install -d -m 0750 altroot/var/cron; |
install -d -m 0700 altroot/var/cron/tabs; |
install -d -m 0700 altroot/var/cron/tabs; |
install -d altroot/var/db; |
install -d altroot/var/db; |
install -d -m 0555 altroot/var/empty; |
install -d -m 0555 altroot/var/empty; |
install -d altroot/var/log; |
install -d altroot/var/log; |
install -d -o www -g www altroot/var/log/lighttpd; | # install -d -o 80 -g 80 altroot/var/log/lighttpd; |
install -d -o quagga -g quagga altroot/var/log/quagga; | install -d -o 101 -g 101 altroot/var/log/quagga; |
install -d altroot/var/named; |
install -d altroot/var/named; |
install -d altroot/var/run; |
install -d altroot/var/run; |
install -d -o www -g www altroot/var/run/lighttpd; | # install -d -o 80 -g 80 altroot/var/run/lighttpd; |
install -d -o bind -g bind altroot/var/run/named; | install -d -o 53 -g 53 altroot/var/run/named; |
install -d -o quagga -g quagga altroot/var/run/quagga; | install -d -o 101 -g 101 altroot/var/run/quagga; |
install -d altroot/var/spool; |
install -d altroot/var/spool; |
install -d -o uucp -g dialer -m 0775 altroot/var/spool/lock; | install -d -o 66 -g 68 -m 0775 altroot/var/spool/lock; |
install -d -g daemon altroot/var/spool/lpd; | install -d -g 1 altroot/var/spool/lpd; |
install -d -g daemon altroot/var/spool/output; | install -d -g 1 altroot/var/spool/output; |
install -d -g daemon altroot/var/spool/output/lpd; | install -d -g 1 altroot/var/spool/output/lpd; |
# boot |
# boot |
install -d boot; |
install -d boot; |
# cf |
# cf |
Line 87 build_fsdir()
|
Line 87 build_fsdir()
|
# pkg |
# pkg |
install -d pkg; |
install -d pkg; |
install -d pkg/db; |
install -d pkg/db; |
|
install -d pkg/lib; |
# tftpboot |
# tftpboot |
install -d tftpboot; |
install -d tftpboot; |
|
|
Line 184 mketc()
|
Line 185 mketc()
|
|
|
chmod 0440 $1/etc/sudoers; |
chmod 0440 $1/etc/sudoers; |
|
|
chgrp www $1/etc/config.xml; | chgrp 80 $1/etc/config.xml; |
chmod 0660 $1/etc/config.xml; |
chmod 0660 $1/etc/config.xml; |
|
|
ln -sf /etc/rc.s $1/etc/rc.S |
ln -sf /etc/rc.s $1/etc/rc.S |
Line 213 mkbackup()
|
Line 214 mkbackup()
|
mkdir -p $1/altroot/backup |
mkdir -p $1/altroot/backup |
|
|
cd $1 |
cd $1 |
tar -czf altroot/backup/.etc.tgz etc |
|
cp -p etc/config.xml altroot/backup |
cp -p etc/config.xml altroot/backup |
|
tar -czf altroot/backup/.etc.tgz etc |
|
|
cd altroot |
cd altroot |
tar -czf backup/.var.tgz var |
tar -czf backup/.var.tgz var |
} |
} |
Line 239 install_fsdir()
|
Line 241 install_fsdir()
|
|
|
install -v ${REL}/${ROOTFS_KERN} ${FS}/boot/kernel |
install -v ${REL}/${ROOTFS_KERN} ${FS}/boot/kernel |
|
|
install -v ${REL}/${ROMFS_IMG} ${FS}/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH} | if [ "${BUILD_FRMIMG}" = "YES" ]; then |
ln ${FS}/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH} ${FS}/altroot/${ROMFS_IMG} | install -v ${REL}/${ROMFS_IMG} ${FS}/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH} |
ln -s /elwix/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH} ${FS}/${ROMFS_IMG} | ln ${FS}/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH} ${FS}/altroot/${ROMFS_IMG} |
| ln -s /elwix/altroot/elwix-firmware-${VERSION}_${TARGET_ARCH} ${FS}/${ROMFS_IMG} |
| else |
| install -d ${FS}/usr |
| cd ${FS}/usr |
| pax -r -z -pe -f ${REL}/${ROMFS_IMG} |
| cd - |
| fi |
|
|
cd $FS |
cd $FS |
tar -czvf ${REL}/${OS} . |
tar -czvf ${REL}/${OS} . |