Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- . /etc/rc.d/PUPSTATE
- SAVE_REL="$(echo $PUPSAVE | cut -d',' -f3)"
- SAVE_PATH="/initrd/mnt/dev_save$SAVE_REL"
- if [ -d "$SAVE_PATH" ] ; then
- if [ -d /initrd/pup_ro1 ]; then
- cp -arfv --remove-destination "$SAVE_PATH"
- rm -rf /initrd/pup_ro1
- elif [ -L /initrd/pup_ro1 ]; then
- rm -rf /initrd/pup_ro1
- fi
- if [ ! -L /initrd/pup_ro1 ]; then
- ln -sv "$SAVE_PATH" /initrd/pup_ro1 #for after switch
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement