Adding live-initramfs 1.87.2-1.
[live-boot-grml.git] / bin / live-snapshot
similarity index 93%
rename from bin/casper-snapshot
rename to bin/live-snapshot
index e912493..e3e05fe 100755 (executable)
@@ -29,9 +29,9 @@ PROGRAM="`basename $0`"
 VERSION=0.0.1
 
 
-# Source casper conf
-if [ -e /etc/casper.conf ]; then
-       . /etc/casper.conf
+# Source live conf
+if [ -e /etc/live.conf ]; then
+       . /etc/live.conf
 else
        USERNAME=$(cat /etc/passwd | grep "999" | cut -f1 -d ':')
        HOSTNAME=$(hostname)
@@ -41,7 +41,7 @@ fi
 export USERNAME USERFULLNAME HOSTNAME BUILD_SYSTEM
 
 # Source helper functions
-helpers="/usr/share/initramfs-tools/scripts/casper-helpers"
+helpers="/usr/share/initramfs-tools/scripts/live-helpers"
 if [ -e "${helpers}" ]; then
        . "${helpers}"
 else
@@ -95,7 +95,7 @@ Help ()
        echo "  -o, --output: specifies the output image file (default: $type dependent)."
     echo "  -r, --resync-string: internally used to resync previous made snapshots."
        echo "  -t, --type: specifies the snapshot type between \"squashfs\", \"ext2\" or \"cpio\".gz archive (default: cpio)"
-    echo -e "\nLook at casper-snapshot(1) man page for more information."
+    echo -e "\nLook at live-snapshot(1) man page for more information."
        exit 0
 }
 
@@ -211,8 +211,8 @@ Mount_device ()
        if [ -z "${dev}" ]; then
                # create a temp
                mount -t tmpfs -o rw tmpfs "${MOUNTP}"
-               if [ ! -L /home/$USERNAME/Desktop/casper-snapshot ]; then
-                       ln -s "${MOUNTP}" /home/$USERNAME/Desktop/casper-snapshot
+               if [ ! -L /home/$USERNAME/Desktop/live-snapshot ]; then
+                       ln -s "${MOUNTP}" /home/$USERNAME/Desktop/live-snapshot
                fi
        else
                if [ -b "${dev}" ] ; then
@@ -223,12 +223,12 @@ Mount_device ()
 
 Defaults ()
 {
-       MOUNTP="/mnt/casper-snapshot"
+       MOUNTP="/mnt/live-snapshot"
        COW="/cow"
        DEV=""
-       DEST="${MOUNTP}/casper-sn.cpio.gz"
+       DEST="${MOUNTP}/live-sn.cpio.gz"
        TYPE="cpio"
-       DESKTOP_LINK=/home/$USERNAME/Desktop/casper-snapshot
+       DESKTOP_LINK=/home/$USERNAME/Desktop/live-snapshot
 
        if [ -n "${SNAP_RSTRING}" ]; then
                COW=$(echo "${SNAP_RSTRING}" | cut -f1 -d ':')