SAWADA Keiji
card_capto****@users*****
2006年 3月 29日 (水) 01:50:05 JST
Index: dlkit2/sv/finish-client.sub diff -u dlkit2/sv/finish-client.sub:1.1.2.2 dlkit2/sv/finish-client.sub:1.1.2.3 --- dlkit2/sv/finish-client.sub:1.1.2.2 Sun Mar 12 17:10:11 2006 +++ dlkit2/sv/finish-client.sub Wed Mar 29 01:50:05 2006 @@ -10,38 +10,28 @@ # modify this program. Whatever you choose, this software comes with # absolutely no warranty. -set -eux +set -eu cl_pool=pool/$CL_CONFIG -#---------------------------------------------------------------------- -# common subroutines - echon() { - printf "%s" "$@" -} - -backup_distfile() { - file=${1:?} - if [ ! -f "$file.dist" ]; then - cp -p "$file" "$file.dist" - fi + printf "%s" "$@" } -#--------------------------------------------------------------------- -create_boot_archive() { +sync_postinstall_boot_archive() { + echo "Synchronizing boot_archive for postinstallation..." cp -p $SV_FIN_ROOT/platform/i86pc/boot_archive \ $SV_PXEBOOTDIR/boot_archive.${CL_NAME} } -restart_dhcpd() { +update_grub_menu_for_postinstall() { case "$BOOT_TYPE" in newboot) - echo "Install menu.lst to TFTP directory..." + echo "Updating GRUB menu for postinstall..." menu=`echo menu.lst.01$CL_MAC | sed -e 's/://g'` cp -p $cl_pool/menu-fin.lst $SV_TFTPROOT/$menu ;; esac } -create_boot_archive -restart_dhcpd +sync_postinstall_boot_archive +update_grub_menu_for_postinstall