oops
[myplc.git] / guest.init
index a67ac01..309523e 100755 (executable)
@@ -77,6 +77,9 @@ reload ()
     if [ -n "$force" -o /etc/planetlab/plc_config.xml -nt /etc/planetlab/plc_config ] ; then
        plc-config --shell >/etc/planetlab/plc_config
     fi
+    if [ -n "$force" -o /etc/planetlab/plc_config.xml -nt /etc/planetlab/plc_config.py ] ; then
+       plc-config --python >/etc/planetlab/plc_config.py
+    fi
     if [ -n "$force" -o /etc/planetlab/plc_config.xml -nt /etc/planetlab/php/plc_config.php ] ; then
        mkdir -p /etc/planetlab/php
        plc-config --php >/etc/planetlab/php/plc_config.php
@@ -95,7 +98,7 @@ usage()
     echo "     reload          Regenerate configuration files"
     echo "     restart         Restart all PLC subsystems"
     echo "     checkpoint filename : Checkpoint the current state of MyPLC to filename"
-    echo "     restart filename : Restore MyPLC state from filename"
+    echo "     restore filename : Restore MyPLC state from filename"
     echo "     steps           Displays ordered list of subsystems"
     echo
     echo "Steps:"
@@ -222,6 +225,11 @@ case "$command" in
        echo "${steps[@]}" >&4
        ;;
 
+    # for backwards compatibility
+    mount|umount|mountstatus)
+       echo "${command} not used within native myplc environment"
+       ;;
+
     *)
        usage >&3
        ;;