| version 1.1.2.2, 2011/07/21 13:46:05 | version 1.2.2.3, 2011/10/23 21:45:46 | 
| Line 74  build_fsdir() | Line 74  build_fsdir() | 
 | install -d -g daemon altroot/var/spool/output/lpd; | install -d -g daemon altroot/var/spool/output/lpd; | 
 | # boot | # boot | 
 | install -d boot; | install -d boot; | 
 | install -d boot/defaults; |  | 
 | install -d boot/firmware; |  | 
 | install -d boot/kernel; |  | 
 | install -d boot/modules; |  | 
 | install -d boot/zfs; |  | 
 | # cf | # cf | 
 | install -d cf; | install -d cf; | 
 | # etc | # etc | 
| Line 104  mkboot() | Line 99  mkboot() | 
 | InstallDir ${WORLD}/boot $1/boot | InstallDir ${WORLD}/boot $1/boot | 
 |  |  | 
 | install -m 644 ${CFGDIR}/boot/boot.config $1; | install -m 644 ${CFGDIR}/boot/boot.config $1; | 
 | install -m 644 ${CFGDIR}/boot/beastie.4th $1/boot; |  | 
 |  |  | 
 |  | install -m 444 ${CFGDIR}/boot/beastie.4th $1/boot; | 
 |  | install -m 444 ${CFGDIR}/boot/brand.4th $1/boot; | 
 |  | install -m 444 ${CFGDIR}/boot/menu.4th $1/boot; | 
 |  |  | 
 |  | install -m 444 ${KERNDEVHINTS} $1/boot/device.hints; | 
 |  |  | 
 | if [ -r ${CFGDIR}/boot/loader_${TARGET_ARCH}.conf ]; then | if [ -r ${CFGDIR}/boot/loader_${TARGET_ARCH}.conf ]; then | 
 | install -m 644 ${CFGDIR}/boot/loader_${TARGET_ARCH}.conf $1/boot/loader.conf; | install -m 644 ${CFGDIR}/boot/loader_${TARGET_ARCH}.conf $1/boot/loader.conf; | 
 | else | else | 
| Line 167  _EOF | Line 167  _EOF | 
 | mketc() | mketc() | 
 | { | { | 
 | echo "+++ Build ELWIX FS etc directory ..." | echo "+++ Build ELWIX FS etc directory ..." | 
 |  | find ${FS_ETC} -name .#\* -exec rm -f {} \; | 
 |  |  | 
 | InstallDir ${FS_ETC} $1/etc | InstallDir ${FS_ETC} $1/etc | 
 |  |  | 
 | chown -R root:wheel $1/etc; | chown -R root:wheel $1/etc; | 
| Line 179  mketc() | Line 181  mketc() | 
 | chmod 0600 $1/etc/ssh/ssh_host_dsa_key; | chmod 0600 $1/etc/ssh/ssh_host_dsa_key; | 
 | chmod 0600 $1/etc/ssh/ssh_host_key; | chmod 0600 $1/etc/ssh/ssh_host_key; | 
 | chmod 0600 $1/etc/ssh/ssh_host_rsa_key; | chmod 0600 $1/etc/ssh/ssh_host_rsa_key; | 
 |  | chmod 0600 $1/etc/ssh/ssh_host_ecdsa_key; | 
 |  |  | 
 | chmod 0440 $1/etc/sudoers; | chmod 0440 $1/etc/sudoers; | 
 |  |  | 
| Line 238  install_fsdir() | Line 241  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 | 
 |  | } | 
 |  |  | 
 | ### 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 255  mkboot ${FS} | Line 265  mkboot ${FS} | 
 | mkhome ${FS} | mkhome ${FS} | 
 | mkvar ${FS} | mkvar ${FS} | 
 | mketc ${FS} | mketc ${FS} | 
 |  | cleancvs ${FS} | 
 | mkbackup ${FS} | mkbackup ${FS} | 
 |  |  | 
 | install_fsdir | install_fsdir |