if [[ ${INITD_FIRST} == y ]] ; then install -m 754 $SCRIPT_DIRECTORY/files/tshutdown ${INSTALL_ROOT}/sbin/tshutdown install -m 754 $SCRIPT_DIRECTORY/files/smgl-cleanup \ ${INSTALL_ROOT}/etc/init.d/runlevels/%S/ fi if [ -e /tmp/devices2dev ] ; then for file in $( cat /tmp/devices2dev ) ; do if [ -f $file ] ; then if [ "$file" = "/etc/securetty" ]; then cp $file $file.$( date +'%Y%m%d%H%M' ) && sedit 's!/devices/!!' $file else cp $file $file.$( date +'%Y%m%d%H%M' ) && sedit 's!/devices!/dev!' $file fi fi done rm /tmp/devices2dev fi sedit "s/DEVICES=.*/DEVICES=$DEVICES/" ${INSTALL_ROOT}/etc/sysconfig/devices message "tty devices in inittab set to /dev/tty[1-6]" # remove /etc/inittab from the simpleinit install log # this should work for $INSTALL_ROOT/etc/inittab, too for i in $INSTALL_LOGS/simpleinit* $MD5SUM_LOGS/simpleinit* do if [ -f $i ] ; then sedit "/\/etc\/inittab/D" $i fi done # # The next sedit is to fix my (sandalle) update of init.d to 2.1.4 # where casting from a queue (or not using -r) will not reassign # it. Should be removed in about a month (~20040926) # if grep -q "mountall$" ${INSTALL_ROOT}/etc/sysconfig/facilities; then message "${MESSAGE_COLOR}Fixing ${INSTALL_ROOT}/etc/sysconfig/facilities:local_fs${DEFAULT_COLOR}" && sedit 's:mountall:mountall.sh:' ${INSTALL_ROOT}/etc/sysconfig/facilities fi && # # End rename fix # rm $INSTALL_ROOT/etc/init.d/runlevels/%2/sorbus-aria && true