Page 1 of 1
Use of activate in the script
Posted: 31 Aug 2020, 14:15
by Kulle
That's working:
echo guest | sudo -S activate example.xzm
But I need:
"If not yet activated, then activate"
How can this be done?
Use of activate in the script
Posted: 31 Aug 2020, 14:55
by Ed_P
Something like this should work.
Code: Select all
if [ ! -e /mnt/live/memory/images/$CHROME ]; then
echo $PSWD | sudo -S activate $OPTIONAL/$CHROME > /dev/null 2>&1 &
sleep 2
fi
Where PSWD, CHROME and OPTIONAL are set before the if statement.
Use of activate in the script
Posted: 31 Aug 2020, 15:00
by otan
[[ -d /mnt/live/memory/images/example.xzm ]] || activate example.xzm