[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

/etc/init.d/update-hostname and Networkmanager.


in /etc/init.d/update-hostname we try to set the hostname for the
workstations .... from DNS Server. 

This can not work because Networkmanager is not started.

First I try to move update-hostname behind start 
/etc/rc2.d/S23network-manager but this does not solve the problem.

This hack does work. It waits until tjener(dns) can be reached and then
update. Really ugly or?   

do_start() {
    [ "$VERBOSE" != no ] && log_action_begin_msg "Updating hostname from
while ! ping -c 1 tjener.intern ; do "$UPDATE" -q ; done &
    if [ "$VERBOSE" != no ] ; then

Any better ideas?

regards Andreas

Reply to: