The network service doesn't take care of hostname, so just running service
network restart won't change it even if it need to be changed in new profile.
The attached patch doest take care of this.
BTW, is there any reason to use eval `cat $file`
instead of more commons . $file or source $file?
--
Guillaume Rousse
Why do 'tugboats push their barges?
-- Why Why Why n�26
--- /sbin/set-netprofile 2003-09-08 18:30:22.000000000 +0200
+++ set-netprofile 2003-09-11 20:50:50.000000000 +0200
@@ -68,6 +68,8 @@
done
/etc/init.d/network restart
+ . /etc/sysconfig/network
+ hostname $HOSTNAME
for s in $(start "$OLD" "$NEW"); do
/etc/init.d/$s start