From 3d54e86a27a0e670ab5a95cb08e965d3ad25dd53 Mon Sep 17 00:00:00 2001 From: Rémy Oudompheng Date: Sat, 11 Jun 2011 14:00:00 +0200 Subject: No longer use the hostname command --- src/connections/ethernet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/connections/ethernet b/src/connections/ethernet index 45f46ac..c402e83 100644 --- a/src/connections/ethernet +++ b/src/connections/ethernet @@ -118,7 +118,7 @@ ethernet_up() { # Set hostname if [[ -n "$HOSTNAME" ]]; then report_debug ethernet_iproute_up hostname "$HOSTNAME" - if ! hostname "$HOSTNAME"; then + if ! echo "$HOSTNAME" > /proc/sys/kernel/hostname; then report_iproute "Cannot set hostname to $HOSTNAME" fi fi -- cgit v1.2.3-24-g4f1b