diff options
Diffstat (limited to 'src/connections/ethernet')
-rw-r--r-- | src/connections/ethernet | 2 |
1 files changed, 1 insertions, 1 deletions
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 |