Diff of /mcore-src/trunk/mcore-tools/daemon/client/include/network.client.class
Parent Directory | Revision Log | Patch
revision 2025 by niro, Fri Nov 4 08:24:27 2011 UTC | revision 2026 by niro, Mon Aug 13 11:28:31 2012 UTC | |
---|---|---|
# | Line 15 help_network_hostname() | Line 15 help_network_hostname() |
15 | ||
16 | get_network_hostname() | get_network_hostname() |
17 | { | { |
18 | hostname | local val |
19 | ||
20 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] | |
21 | then | |
22 | val=$(hostname) | |
23 | else | |
24 | val=$(< /etc/hostname) | |
25 | fi | |
26 | ||
27 | rvecho "${val}" | |
28 | } | } |
29 | ||
30 | # set_network_hostname $value | # set_network_hostname $value |
|