What's the correct way to shutdown from software?

I’ve tried various things like “poweroff -p” or “shutdown -h” but the device seems to just come back online. I do have a USB hub plugged in if that matters.

My syscon settings are the defaults:

~# sudo /usr/bin/particle-tachyon-syscon.sh list_config
Dumping internal raw config:
confVersion = 1
No more keys found

Dumping internal settings (use config to set):
sys.auto_boot: false
sys.wake_pin_enable: false
sys.color_debug_enable: false
sys.fastboot_enabled: false
sys.demo_enabled: false

I’m seeing the same behaviour - only the long button press shuts down the hardware, software commands poweroff/shutdown -h just cause a reboot

@msells Just to check, what version are you on? You can find this by running cat /etc/particle/distro_versions.json.