summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/bin/servconfig
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs/stage3-stuff/bin/servconfig')
-rwxr-xr-xinitramfs/stage3-stuff/bin/servconfig26
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