#!/bin/bash #%rlevels: 7:s 0:k 6:k #%start: 40 #%stop: 60 #deps #%needs: #%before: #%after: source /etc/sysconfig/rc source $rc_functions case "$1" in start) echo -e ${COLOREDSTAR}"Recording existing mounts in /etc/mtab ..." > /etc/mtab #fake mount rootfs (taken from /.bootdev) if [ -e /.bootdev ] then source /.bootdev mount -f ${BOOTDEV} /mnt/cdrom -t ${FSTYPE} -o ro #we don't delete this for the alx settings import #wanna check if usbstorage or not #rm /.bootdev fi #fake mount cloop mount -f /mnt/cdrom/livecdrootfs.cloop /mnt/cloop -t ext2 -o ro #fake mount dev mount -f devfs /dev -t devfs -o rw #fake mount tmpfs mount -f tmpfs / -t tmpfs -o rw #fake mount proc mount -f proc /proc -t proc -o rw evaluate_retval update_svcstatus $1 splash svc_started "$(basename $0)" 0 ;; stop) echo -e ${COLOREDSTAR}"Unmounting all other currently mounted file systems ..." #umount /dev #umount /proc #umount / #umount -a -r evaluate_retval update_svcstatus $1 splash svc_stopped "$(basename $0)" 0 ;; *) echo "Usage: $0 {start|stop}" exit 1 ;; esac