up 195 B

1234567891011
  1. #!/bin/execlineb -P
  2. if -t { test -s /etc/hostname }
  3. backtick -n -E HOSTNAME {
  4. head -1 /etc/hostname
  5. }
  6. if -t { test -n "${HOSTNAME}" }
  7. redirfd -w 1 /proc/sys/kernel/hostname
  8. echo "${HOSTNAME}"