From 66a7fcec9c5037a3a10f3c97837ac31c91360c34 Mon Sep 17 00:00:00 2001 From: hummypkg Date: Tue, 29 Oct 2013 20:05:15 +0000 Subject: [PATCH] fix hostname setting git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1710 2a923420-c742-0410-a762-8d5b09965624 --- var/mongoose/lib/settings.class | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/var/mongoose/lib/settings.class b/var/mongoose/lib/settings.class index 76962bb..6e13d8c 100644 --- a/var/mongoose/lib/settings.class +++ b/var/mongoose/lib/settings.class @@ -35,7 +35,7 @@ class settings { settings method hostname {{name ""}} { if {$name == ""} { # Get - if {[catch {set fd [open "/var/lib/humaxtv/hostname" r]}]} { + if {[catch {set fd [open "/var/lib/humaxtv/mod/hostname" r]}]} { set name "humax" } else { set name [string trim [read $fd]] @@ -45,10 +45,10 @@ settings method hostname {{name ""}} { } else { # Set if [string is alnum -strict $name] { - set fd [open "/var/lib/humaxtv/hostname" w] + set fd [open "/var/lib/humaxtv/mod/hostname" w] puts $fd $name close $fd - exec hostname -F /var/lib/humaxtv/hostname + exec hostname -F /var/lib/humaxtv/mod/hostname } } }