diff options
author | Rémy Oudompheng <remy@archlinux.org> | 2011-06-11 14:00:00 +0200 |
---|---|---|
committer | Rémy Oudompheng <remy@archlinux.org> | 2011-06-11 14:00:00 +0200 |
commit | 3d54e86a27a0e670ab5a95cb08e965d3ad25dd53 (patch) | |
tree | 1300ef4f33fb5eb2060048737188277992c796aa /src/connections/ethernet | |
parent | a119f9221817b43aa8d7daa84d79f95db06d1cc0 (diff) | |
download | netctl-3d54e86a27a0e670ab5a95cb08e965d3ad25dd53.tar.gz netctl-3d54e86a27a0e670ab5a95cb08e965d3ad25dd53.tar.xz |
No longer use the hostname command
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 |