xbps-casper: do not run polkit script if not installed, fixed some msgs.

This commit is contained in:
Juan RP 2011-02-16 12:59:37 +01:00
parent 4c1c20873c
commit 0d3db734e7
3 changed files with 9 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
PREREQ=""
DESCRIPTION="Setting up automatic login..."
DESCRIPTION="Setting up automatic login"
prereqs()
{

View File

@ -1,7 +1,7 @@
#!/bin/sh
PREREQ=""
DESCRIPTION="Grant administrative PolicyKit pivilieges to default user..."
DESCRIPTION="Modifying PolicyKit grants for '$USERNAME' user"
prereqs()
{
@ -18,6 +18,10 @@ esac
. /scripts/casper-functions
# Check that polkit is installed.
if [ ! -x "/root/usr/libexec/polkitd" ]; then
exit 0
fi
log_begin_msg "$DESCRIPTION"
# configure PolicyKit in live session

View File

@ -1,6 +1,8 @@
# Template file for 'xbps-casper'
pkgname=xbps-casper
version=0.6.ubuntu1.236
_localver=0.7 # XBPS package version
_distver=1.236 # This should match the upstream (Ubuntu) version
version=${_localver}.${_distver}
build_style=custom-install
short_desc="Run a live preinstalled system from read-only media"
maintainer="Juan RP <xtraeme@gmail.com>"