toaruos/base/etc/startup.d/02_hostname.sh
2023-05-05 22:30:33 +09:00

8 lines
184 B
Bash
Executable File

#!/bin/esh
export-cmd HOSTNAME cat /etc/hostname
echo -n "Setting hostname..." > /dev/pex/splash
if empty? "$HOSTNAME" then exec hostname "localhost" else exec hostname "$HOSTNAME"