32 lines
664 B
Bash
Executable file
32 lines
664 B
Bash
Executable file
#!/bin/sh
|
|
|
|
## live-config(7) - System Configuration Scripts
|
|
## Copyright (C) 2006-2013 Daniel Baumann <daniel@debian.org>
|
|
##
|
|
## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
|
|
## This is free software, and you are welcome to redistribute it
|
|
## under certain conditions; see COPYING for details.
|
|
|
|
|
|
LIVELink ()
|
|
{
|
|
|
|
if [ ! -e /home/${LIVE_USERNAME} ]
|
|
then
|
|
return
|
|
fi
|
|
|
|
if [ -e /home/${LIVE_USERNAME}/LIVE ]
|
|
then
|
|
rm /home/${LIVE_USERNAME}/LIVE
|
|
fi
|
|
|
|
livelnk=`/sbin/losetup /dev/loop0 | /bin/sed -ne 's!^.*\(/lib/live/.*\)live/filesystem.squashfs.*$!\1!p'`
|
|
|
|
echo -n " live-link"
|
|
|
|
ln -s $livelnk /home/${LIVE_USERNAME}/LIVE
|
|
|
|
}
|
|
|
|
LIVELink
|