version 1.3.2.2, 2011/11/02 10:30:20
|
version 1.3.2.5, 2012/03/20 16:12:44
|
Line 84 build_fsdir()
|
Line 84 build_fsdir()
|
install -d home; |
install -d home; |
# root |
# root |
install -d -m 0700 root; |
install -d -m 0700 root; |
# local | # pkg |
install -d local; | install -d pkg; |
| install -d pkg/db; |
# tftpboot |
# tftpboot |
install -d tftpboot; |
install -d tftpboot; |
|
|
Line 194 mketc()
|
Line 195 mketc()
|
ln -sf /var/named/etc/namedb $1/etc/namedb; |
ln -sf /var/named/etc/namedb $1/etc/namedb; |
ln -sf /var/run/resolv.conf $1/etc/resolv.conf; |
ln -sf /var/run/resolv.conf $1/etc/resolv.conf; |
|
|
|
ln -sf /elwix/pkg/etc/mk.conf $1/etc/mk.conf; |
|
|
echo ${TARGET_ARCH} >$1/etc/platform; |
echo ${TARGET_ARCH} >$1/etc/platform; |
|
|
create_etc_motd $1/etc/motd; |
create_etc_motd $1/etc/motd; |
create_etc_fstab $1/etc/fstab; |
create_etc_fstab $1/etc/fstab; |
|
|
|
echo "+++ ELWIX clean CVS tags ..." |
|
CleanCVS ${FS} |
|
CleanCVS ${FS}/etc |
} |
} |
|
|
mkbackup() |
mkbackup() |
Line 240 install_fsdir()
|
Line 247 install_fsdir()
|
tar -czvf ${REL}/${OS} . |
tar -czvf ${REL}/${OS} . |
} |
} |
|
|
cleancvs() |
|
{ |
|
echo "+++ ELWIX clean CVS tags ..." |
|
|
|
find $1 -type d -name CVS -exec rm -rf {} \; >/dev/null 2>&1 |
|
find $1 -type f -name .#\* -exec rm -f {} \; >/dev/null 2>&1 |
|
} |
|
|
|
### main() |
### main() |
if [ ! -r ${REL}/${ROOTFS_KERN} -o ! -r ${REL}/${ROMFS_IMG} ]; then |
if [ ! -r ${REL}/${ROOTFS_KERN} -o ! -r ${REL}/${ROMFS_IMG} ]; then |
echo |
echo |
Line 265 mkboot ${FS}
|
Line 264 mkboot ${FS}
|
mkhome ${FS} |
mkhome ${FS} |
mkvar ${FS} |
mkvar ${FS} |
mketc ${FS} |
mketc ${FS} |
cleancvs ${FS} |
|
cleancvs ${FS}/etc |
|
mkbackup ${FS} |
mkbackup ${FS} |
|
|
install_fsdir |
install_fsdir |