How‐to - wayne-incorporated/wayne-os GitHub Wiki

Commands for OS management

Requirement

wayne-os-dev or wayne-os-test versions

In local shell

Open shell in Wayne OS device then try the following steps.

Powerwash

$ { sudo bash -c 'echo "fast safe" > /mnt/stateful_partition/factory_install_reset' ;} && sudo reboot

or

$ { echo "fast safe" | sudo tee -a /mnt/stateful_partition/factory_install_reset ;} && sudo reboot

Job control

Wayne OS and Chromium OS derivates use Upstart. To check job list.

$ sudo initctl list

To control the job.

sudo initctl start/stop/restart/status ${JOB}

Available commands for checking information, performance

From remote

You can send the shell commands from remote device to Wayne OS device via ssh.

ssh chronos@${IP} -t "COMMAND"  # This will ask pw again if the COMMAND includes sudo.
ssh root@${IP} "COMMAND"  # This is available only in Wayne OS test version.

Examples

  • Force powerwash to Wayne OS device.
$ ssh [email protected] -t "{ echo "fast safe" | sudo tee -a /mnt/stateful_partition/factory_install_reset ;} && sudo reboot"
  • Force to restart UI (logout user graphic session) on Wayne OS device.
$ ssh [email protected] "initctl restart ui"
  • Getting process information from Wayne OS device.
$ ssh [email protected] -t "top -n 1 -b" > proc_list.txt