diff options
author | Dirk von Suchodoletz | 2009-08-11 15:50:03 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2009-08-11 15:50:03 +0200 |
commit | 298c5df775c45a44d79fbea9c33f9c53e027fc8d (patch) | |
tree | c71271eff9085d9f54c764714ceb46e3840c7e5e /initramfs/stage3-stuff/bin/servconfig | |
parent | Adding creation of run-virt.include (independent of found removable (diff) | |
download | core-298c5df775c45a44d79fbea9c33f9c53e027fc8d.tar.gz core-298c5df775c45a44d79fbea9c33f9c53e027fc8d.tar.xz core-298c5df775c45a44d79fbea9c33f9c53e027fc8d.zip |
Some experimental stuff (dont use yet) ...
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3073 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/stage3-stuff/bin/servconfig')
-rwxr-xr-x | initramfs/stage3-stuff/bin/servconfig | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/initramfs/stage3-stuff/bin/servconfig b/initramfs/stage3-stuff/bin/servconfig index b44d57cf..dcadc70a 100755 --- a/initramfs/stage3-stuff/bin/servconfig +++ b/initramfs/stage3-stuff/bin/servconfig @@ -112,24 +112,24 @@ echo -e "# /etc/hosts - file generated by $0 during OpenSLX stage3\ fe00::0\t\tipv6-localnet\nff00::0\t\tipv6-mcastprefix\nff02::1\ \t\tipv6-allnodes\nff02::2\t\tipv6-allrouters\nff02::3\t\t\ ipv6-allhosts\n" >/mnt/etc/hosts -if [ -n "$domain_name" ]; then - echo -en "$clientip\t" >>/mnt/etc/hosts - for name in $domain_name; do - echo -en "$host_name.$name " >>/mnt/etc/hosts +if [ -n "${domain_name}" ]; then + echo -en "${clientip}\t" >>/mnt/etc/hosts + for name in ${domain_name}; do + echo -en "${host_name}.${name} " >>/mnt/etc/hosts done - echo -e "$host_name" >>/mnt/etc/hosts + echo -e "${host_name}" >>/mnt/etc/hosts else - echo -e "$clientip\t$host_name" >>/mnt/etc/hosts + echo -e "${clientip}\t${host_name}" >>/mnt/etc/hosts fi # set up domainname and resolving rm -rf /mnt/etc/resolv.conf -test -n "$domain_name" && \ +test -n "${domain_name}" && \ echo -e "# /etc/resolv.conf - file generated by\n#\t$0:\n\ -#\t$date\n#options timeout:1 attempts:1 rotate\n\ -search "$domain_name >/mnt/etc/resolv.conf -test -n "$domain_name_servers" && { - for name in $domain_name_servers; do - echo nameserver $name >>/mnt/etc/resolv.conf; +#\t${date}\n#options timeout:1 attempts:1 rotate\n\ +search "${domain_name} >/mnt/etc/resolv.conf +test -n "${domain_name_servers}" && { + for name in ${domain_name_servers}; do + echo nameserver ${name} >>/mnt/etc/resolv.conf; done; } ############################################################################# @@ -145,8 +145,6 @@ config_atd # configuration of cron services - calling distro specific function # config_cron (runlevel links, directories, ...) config_cron -[ "x$crontab_entries" != "x" ] && \ - echo -e "$crontab_entries" >> /mnt/etc/crontab # setup system log services - distro dependent function config_syslog config_syslog |