#!/bin/bash ############################################################################## # # pack-them, (C) 2007-2010 S. Georgaras # update-cfgs, (C) 2012 S. Georgaras # # This file is part of Clonezilla-SysRescCD. # # Clonezilla-SysRescCD is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # Clonezilla-SysRescCD is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Clonezilla-SysRescCD. If not, see . # ############################################################################## cd ../files/isofiles echo -n "Packing menu isolinux files... " mkdir forCD # cp -L *msg *cfg forCD cp -L *cfg forCD cd forCD mkdir isolinux syslinux # cp -L *msg *cfg isolinux cp -L *cfg isolinux cd isolinux for n in *.cfg;do sed 's|isolinux.cfg|syslinux.cfg|' $n > ../syslinux/$n done sed 's|hd1|hd2|' isolinux.cfg | sed 's|hd0|hd1|' | sed 's|isolinux.cfg|syslinux.cfg|' > ../syslinux/syslinux.cfg sed 's|initrd=initram.igz|initrd=initram.igz scandelay=5|' sysresc.cfg | sed 's|isolinux.cfg|syslinux.cfg|' > ../syslinux/sysresc.cfg rm ../syslinux/isolinux.cfg cd .. rm isolinux.cfg rm ../menu-for-iso.tar.gz 2>/dev/null # tar czhf ../../menu-for-iso.tar.gz *msg *cfg isolinux/*cfg isolinux/*msg tar czhf ../../menu-for-iso.tar.gz syslinux/*cfg isolinux/*cfg cd .. rm -rf forCD echo 'done'