add devbyid dependency
[automated-distro-installer] / myfai-chboot
index e216aa077e0e9afe19b0fc572e173c4e55afa43e..32addc589e4f2a2b9455ec4d48b47ff39c5dc40c 100755 (executable)
@@ -15,4 +15,10 @@ EOF
 
 cd "${BASH_SOURCE%/*}" # directory of the script
 
-ssh root@faiserver bash -s "$@" <myfai-chboot-local
+host=$(chost faiserver)
+ssh root@$host bash -s "$@" <myfai-chboot-local
+if [[ $1 ]]; then
+    ./faiserver-enable
+else
+    ./faiserver-disable
+fi