8 lines
183 B
Bash
Executable File
8 lines
183 B
Bash
Executable File
#!/bin/sh
|
|
|
|
export-cmd HOSTNAME cat /etc/hostname
|
|
|
|
echo -n "Setting hostname..." > /dev/pex/splash
|
|
|
|
if empty? "$HOSTNAME" then exec hostname "localhost" else exec hostname "$HOSTNAME"
|