X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=bin%2Flive-snapshot;fp=bin%2Fcasper-snapshot;h=e3e05fef6111461fce567d9ba6b88de342cb4e17;hb=9fc9e2a1a11b0edada38cb501fefe4f58aa414ac;hp=e9124931e8309edc218f7e61cdb11f942c7813df;hpb=4bdaa2237c6ae923d1dd068e9024ebceca3f40d9;p=live-boot-grml.git diff --git a/bin/casper-snapshot b/bin/live-snapshot similarity index 93% rename from bin/casper-snapshot rename to bin/live-snapshot index e912493..e3e05fe 100755 --- a/bin/casper-snapshot +++ b/bin/live-snapshot @@ -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 ':')