From d28640d44bd6bdcdf3df36e57e9845233dbb879d Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 29 Apr 2012 22:16:59 -0400 Subject: Set hostname. --- (limited to 'src/etc/init.d/hostname') diff --git a/src/etc/init.d/hostname b/src/etc/init.d/hostname new file mode 100644 index 0000000..aec1102 --- /dev/null +++ b/src/etc/init.d/hostname @@ -0,0 +1,13 @@ +#!/bin/sh + +case "${1}" in + start) + printf 'Setting hostname... ' + [ -f /etc/hostname ] && hostname -F /etc/hostname || hostname none + printf 'done.\n' + ;; + *) + printf 'Usage: %s start\n' "${0}" >&2 + exit 1 + ;; +esac -- cgit v0.9.1