Changeset 2255 in MondoRescue for branches/2.2.9/mindi/rootfs/sbin/init
- Timestamp:
- Jul 5, 2009, 2:58:53 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi/rootfs/sbin/init
r2253 r2255 826 826 LogIt "backup-media-type is specified in config file - great." 827 827 LogIt "Calling post-init" 828 # start-nfs moved it under /tmp as the NFS share is already unmounted 829 if [ "`echo $pre | grep -E '^/tmp/isodir'`" ]; then 830 post=`echo $pre | sed 's|^/tmp/isodir|/tmp|'` 831 fi 832 if [ -x $pre ]; then 833 echo "Executing preliminary script $pre" 834 LogIt "Executing preliminary script $pre" 835 $pre 836 fi 828 837 post-init 829 838 else … … 831 840 LogIt "I think this media has no archives on it." 832 841 fi 833 if [ "`grep -i " script=" /proc/cmdline`" ] ; then842 if [ "`grep -i "post=" /proc/cmdline`" ] ; then 834 843 for i in `cat /proc/cmdline` ; do 835 echo $i | grep -qi script= && script=`echo $i | cut -d= -f2`844 echo $i | grep -qi post= && post=`echo $i | cut -d= -f2` 836 845 done 837 846 # start-nfs moved it under /tmp as the NFS share is already unmounted 838 if [ "`echo $ script | grep -E '^/tmp/isodir'`" ]; then839 script=`echo $script | sed 's|^/tmp/isodir|/tmp|'`840 fi 841 if [ -x $ script ]; then842 echo "Executing final script $ script"843 LogIt "Executing final script $ script"844 if [ "`echo $ script | grep -E '^/mnt/RESTORING'`" ]; then847 if [ "`echo $post | grep -E '^/tmp/isodir'`" ]; then 848 post=`echo $post | sed 's|^/tmp/isodir|/tmp|'` 849 fi 850 if [ -x $post ]; then 851 echo "Executing final script $post" 852 LogIt "Executing final script $post" 853 if [ "`echo $post | grep -E '^/mnt/RESTORING'`" ]; then 845 854 mount-me 846 855 fi 847 $ script848 if [ "`echo $ script | grep -E '^/mnt/RESTORING'`" ]; then856 $post 857 if [ "`echo $post | grep -E '^/mnt/RESTORING'`" ]; then 849 858 unmount-me 850 859 fi
Note:
See TracChangeset
for help on using the changeset viewer.