Fixed qubes_setupdvm whitespace.
This commit is contained in:
parent
5c10812e36
commit
e2d9673713
@ -31,19 +31,19 @@ start()
|
|||||||
if [ $ROOT -nt $DEFAULT ] ; then create_neeed=1 ; fi
|
if [ $ROOT -nt $DEFAULT ] ; then create_neeed=1 ; fi
|
||||||
if [ $create_neeed = 1 ] ; then
|
if [ $create_neeed = 1 ] ; then
|
||||||
echo Creating the default DVM. This may take up to 2 minutes...
|
echo Creating the default DVM. This may take up to 2 minutes...
|
||||||
qvm-create-default-dvm --default-template --default-script
|
qvm-create-default-dvm --default-template --default-script
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
if [ -f /var/lib/qubes/dvmdata/dont_use_shm ] ; then
|
if [ -f /var/lib/qubes/dvmdata/dont_use_shm ] ; then
|
||||||
ln -s $DEFAULT /var/run/qubes/current_savefile
|
ln -s $DEFAULT /var/run/qubes/current_savefile
|
||||||
else
|
else
|
||||||
mkdir -m 770 /dev/shm/qubes
|
mkdir -m 770 /dev/shm/qubes
|
||||||
chown root.qubes /dev/shm/qubes
|
chown root.qubes /dev/shm/qubes
|
||||||
cp $DEFAULT /dev/shm/qubes/current_savefile
|
cp $DEFAULT /dev/shm/qubes/current_savefile
|
||||||
chown root.qubes /dev/shm/qubes/current_savefile
|
chown root.qubes /dev/shm/qubes/current_savefile
|
||||||
chmod 660 /dev/shm/qubes/current_savefile
|
chmod 660 /dev/shm/qubes/current_savefile
|
||||||
ln -s /dev/shm/qubes/current_savefile /var/run/qubes/current_savefile
|
ln -s /dev/shm/qubes/current_savefile /var/run/qubes/current_savefile
|
||||||
fi
|
fi
|
||||||
|
|
||||||
touch /var/lock/subsys/qubes_setupdvm
|
touch /var/lock/subsys/qubes_setupdvm
|
||||||
success
|
success
|
||||||
@ -60,15 +60,15 @@ stop()
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
stop
|
stop
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo $"Usage: $0 {start|stop}"
|
echo $"Usage: $0 {start|stop}"
|
||||||
exit 3
|
exit 3
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit $RETVAL
|
exit $RETVAL
|
||||||
|
Loading…
Reference in New Issue
Block a user