2018-08-12 10:36:56 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
export-cmd HOSTNAME cat /etc/hostname
|
|
|
|
|
2018-12-18 06:12:17 +03:00
|
|
|
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"
|