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 #!/bin/sh
PREREQ="" PREREQ=""
DESCRIPTION="Setting up automatic login..." DESCRIPTION="Setting up automatic login"
prereqs() prereqs()
{ {

View file

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

View file

@ -1,6 +1,8 @@
# Template file for 'xbps-casper' # Template file for 'xbps-casper'
pkgname=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 build_style=custom-install
short_desc="Run a live preinstalled system from read-only media" short_desc="Run a live preinstalled system from read-only media"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"