[SM-Commit] GIT changes to master grimoire by Vlad Glagolev (2e664ccfb4c3590fe2ca35cb624806da1fa18af3)

Ladislav Hagara ladislav.hagara at unob.cz
Tue Nov 20 17:45:52 EST 2007


Hi, just thinking why you used /etc/defaultdomain? Is it some standard?
BTW, our netconf should be able to set/update domainname.
Please, could you submit bug report so we do not forget or better could
you just update netconf? :-)
Seems you are first who miss domainname.
Thanks.

-- 
Ladislav Hagara


> GIT changes to master grimoire by Vlad Glagolev <stealth at sourcemage.org>:
>
>  smgl/init.d/HISTORY            |    4 ++++
>  smgl/init.d/init.d/hostname.sh |    6 ++++++
>  2 files changed, 10 insertions(+)
>
> New commits:
> commit 2e664ccfb4c3590fe2ca35cb624806da1fa18af3
> Author: Vlad Glagolev <stealth at sourcemage.org>
> Commit: Vlad Glagolev <stealth at sourcemage.org>
>
>     init.d: added domainname (@ hostname.sh). execute it @ startup if /etc/defaultdomain exists
>
> diff --git a/smgl/init.d/HISTORY b/smgl/init.d/HISTORY
> index 97cb5b1..e200799 100644
> --- a/smgl/init.d/HISTORY
> +++ b/smgl/init.d/HISTORY
> @@ -1,3 +1,7 @@
> +2007-11-20 Vlad Glagolev <stealth at sourcemage.org>
> +       * init.d/hostname.sh: added execution of `domainname'
> +         (if exists /etc/defaultdomain containing the domain name)
> +
>  2007-09-26 David Brown <dmlb2000 at gmail.com>
>         * mountall.sh: added luks partition additions for encrypted partitions
>         * DETAILS: updated patchlevel
> diff --git a/smgl/init.d/init.d/hostname.sh b/smgl/init.d/init.d/hostname.sh
> index e75e562..34954a7 100755
> --- a/smgl/init.d/init.d/hostname.sh
> +++ b/smgl/init.d/init.d/hostname.sh
> @@ -16,6 +16,12 @@ start()
>    /bin/hostname "`cat /etc/hostname`"
>    evaluate_retval
>
> +  if [ -e /etc/defaultdomain ]; then
> +    echo "Setting domain name..."
> +    /bin/domainname "`cat /etc/defaultdomain`"
> +    evaluate_retval
> +  fi
> +
>    echo "Setting up local network interface..."
>    ifconfig lo 127.0.0.1 broadcast 127.255.255.255 netmask 255.0.0.0
>    evaluate_retval




More information about the SM-Commit mailing list