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)
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
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
}
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
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 ':')