e-smith-cvm-unix-local/root/sbin/e-smith/systemd/cvm-unix-pre

11 lines
271 B
Bash

#!/bin/sh
/sbin/e-smith/config show cvm-unix 1>/dev/null || /sbin/e-smith/config set cvm-unix service status enabled
status=$(/sbin/e-smith/config getprop cvm-unix status)
if [ "$status" != "enabled" ]
then
/sbin/e-smith/config setprop cvm-unix status disabled
fi