8 lines
184 B
Bash
Executable File
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"
|