summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRémy Oudompheng <remy@archlinux.org>2011-06-11 14:00:00 +0200
committerRémy Oudompheng <remy@archlinux.org>2011-06-11 14:00:00 +0200
commit3d54e86a27a0e670ab5a95cb08e965d3ad25dd53 (patch)
tree1300ef4f33fb5eb2060048737188277992c796aa /src
parenta119f9221817b43aa8d7daa84d79f95db06d1cc0 (diff)
downloadnetctl-3d54e86a27a0e670ab5a95cb08e965d3ad25dd53.tar.gz
netctl-3d54e86a27a0e670ab5a95cb08e965d3ad25dd53.tar.xz
No longer use the hostname command
Diffstat (limited to 'src')
-rw-r--r--src/connections/ethernet2
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