toaruos/base/etc/startup.d/02_hostname.sh

8 lines
183 B
Bash
Raw Normal View History

2018-08-12 10:36:56 +03:00
#!/bin/sh
export-cmd HOSTNAME cat /etc/hostname
echo -n "Setting hostname..." > /dev/pex/splash
2018-08-12 10:36:56 +03:00
if empty? "$HOSTNAME" then exec hostname "localhost" else exec hostname "$HOSTNAME"