Added simplified ConfFile entry using myops_setup_sh
[myops.git] / web / collect / client / get_bootcd_version.sh
index 5ab3465..58a555f 100755 (executable)
@@ -1,6 +1,11 @@
 #!/bin/bash
 
 kernel=$1
 #!/bin/bash
 
 kernel=$1
+if [ -f /etc/planetlab/plc_config ]; then
+       source /etc/planetlab/plc_config
+else
+       PLC_SLICE_PREFIX='pl'
+fi
 
 function get_version () {
 
 
 function get_version () {
 
@@ -33,7 +38,7 @@ function mount_works () {
 }
 
 mkdir -p /mnt/boot
 }
 
 mkdir -p /mnt/boot
-DL=`./sysinfo/systeminfo.py | sort -n | awk '{print $2}' | head -1`
+DL=`/home/${PLC_SLICE_PREFIX}_myops/sysinfo/systeminfo.py | sort -n | awk '{print $2}' | head -1`
 if [ -z "$kernel" ] ; then
     V="No BootImage Found"
 else
 if [ -z "$kernel" ] ; then
     V="No BootImage Found"
 else