[Lunar-commits] <lunar-tools> Updated all lunar tools to use $BOOTSTRAP is available

Peter de Ridder peter at lunar-linux.org
Tue Jan 1 16:38:47 CET 2013


commit c2ebf5781fad88cc8d0dc07378be6766feeff05f
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Tue, 01 Jan 2013 07:38:47 -0800
URL: https://github.com/lunar-linux/lunar-tools/commit/c2ebf5781fad88cc8d0dc07378be6766feeff05f

Updated all lunar tools to use $BOOTSTRAP is available
---
  prog/clad          | +1/-0     
  prog/installkernel | +1/-1     
  prog/lids          | +1/-0     
  prog/luser         | +1/-0     
  4 files changed, 4 insertions(+), 1 deletion(-)

--- a/prog/clad
+++ b/prog/clad
@@ -111,6 +111,7 @@ node_run()
 
 
 . /etc/lunar/config
+[ -n "$BOOTSTRAP" ] && . $BOOTSTRAP
 
 CLAD_CONF_DIR=/var/lib/clad
 
--- a/prog/installkernel
+++ b/prog/installkernel
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 . /etc/lunar/config
-. $BOOTSTRAP
+[ -n "$BOOTSTRAP" ] && . $BOOTSTRAP
 
 preserve()
 {
--- a/prog/lids
+++ b/prog/lids
@@ -187,6 +187,7 @@ check_md5sums() {
 
 
 . /etc/lunar/config
+[ -n "$BOOTSTRAP" ] && . $BOOTSTRAP
 
 GETOPT_ARGS=$(getopt -q -n lids -o "dvhs" -l "debug,verbose,help,silent" -- "$@")
 
--- a/prog/luser
+++ b/prog/luser
@@ -769,6 +769,7 @@ main_menu() {
 
 
 . /etc/lunar/config
+[ -n "$BOOTSTRAP" ] && . $BOOTSTRAP
 
 export IFS="$TAB_ENTER_IFS"
 




More information about the Lunar-commits mailing list