summaryrefslogtreecommitdiffstats
path: root/perl-install/c
diff options
context:
-rwxr-xr-xrc.d/rc.sysinit8
1 files changed, 8 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index cf881faa..cef3a542 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -25,6 +25,10 @@ swapon -a
hostname ${HOSTNAME}
echo hostname: `hostname`
+if [ -n ${DOMAIN} ]; then
+ DOMAIN=`echo $HOSTNAME | sed 's/^[^\.]*\.//'`
+fi
+
# Set the NIS domain name
if [ -n "$NISDOMAIN" ]; then
domainname $NISDOMAIN
@@ -157,6 +161,10 @@ if [ -x /sbin/kerneld -a -n "$USEMODULES" ]; then
KERNELD=yes
fi
+if ! grep search /etc/resolv.conf ; then
+ echo "search $DOMAIN" >> /etc/resolv.conf
+fi
+
# Check filesystems
if [ ! -f /fastboot ]; then
echo "Checking filesystems."
7b508729d04be720fd34d6.tar.xz
drakx-bac52c60e891ed3e927b508729d04be720fd34d6.zip
regroup net includes like they were in the past
Diffstat (limited to 'perl-install/c')
-rwxr-xr-xperl-install/c/stuff.xs.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/c/stuff.xs.pl b/perl-install/c/stuff.xs.pl
index 0be758fab..86f826f7b 100755
--- a/perl-install/c/stuff.xs.pl
+++ b/perl-install/c/stuff.xs.pl
@@ -36,9 +36,9 @@ print '
#include <net/route.h>
#include <netinet/in.h>
#include <linux/sockios.h>
+#include <linux/ethtool.h>
#include <linux/input.h>
#include <execinfo.h>
-#include <linux/ethtool.h>
// for UPS on USB:
# define HID_MAX_USAGES 1024