Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to disable my Ethernet device on startup in Slackware 12.2. I've tried putting 'ifconfig eth0 down' in the /etc/rc.d/inet1.conf file at the beginning but that didn't work. I also tried adding 'ifconfig eth0 down' to the /etc/rc.d/rc.local file but that didn't work either. I'm on a laptop and don't usually have an Ethernet cable plugged in so the laptop has to wait for the DHCP process to timeout before continuing.
Thanks for the link, however I ran into a problem installing the ifplugd daemon. When I run 'make' it fails giving out a few errors saying it has conflicting types for various entries. I included the output below.
Code:
bash-3.1$ make
make all-recursive
make[1]: Entering directory `/home/frank/builds/ifplugd-0.28'
Making all in src
make[2]: Entering directory `/home/frank/builds/ifplugd-0.28/src'
if test -d "../.svn" ; then \
if REV=`svn info ".." | grep ^Revision | cut -f2 -d" "` 2> /dev/null ; then \
echo -e "#ifndef foosvnrevisionhfoo\n#define foosvnrevisionhfoo\n#define SVN_REVISION \"$REV\"\n#endif" > svn-revision.h ; \
fi \
fi
make all-am
make[3]: Entering directory `/home/frank/builds/ifplugd-0.28/src'
if test -d "../.svn" ; then \
if REV=`svn info ".." | grep ^Revision | cut -f2 -d" "` 2> /dev/null ; then \
echo -e "#ifndef foosvnrevisionhfoo\n#define foosvnrevisionhfoo\n#define SVN_REVISION \"$REV\"\n#endif" > svn-revision.h ; \
fi \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -I/usr/local/include -DSYSCONFDIR="\"/usr/local/etc\"" -D_GNU_SOURCE -g -O2 -pipe -W -Wall -Wno-unused-parameter -MT interface.o -MD -MP -MF ".deps/interface.Tpo" -c -o interface.o interface.c; \
then mv -f ".deps/interface.Tpo" ".deps/interface.Po"; else rm -f ".deps/interface.Tpo"; exit 1; fi
In file included from interface.c:27:
/usr/include/sys/types.h:62: error: conflicting types for 'dev_t'
/usr/include/linux/types.h:13: error: previous declaration of 'dev_t' was here
/usr/include/sys/types.h:67: error: conflicting types for 'gid_t'
/usr/include/linux/types.h:27: error: previous declaration of 'gid_t' was here
/usr/include/sys/types.h:72: error: conflicting types for 'mode_t'
/usr/include/linux/types.h:15: error: previous declaration of 'mode_t' was here
/usr/include/sys/types.h:77: error: conflicting types for 'nlink_t'
/usr/include/linux/types.h:16: error: previous declaration of 'nlink_t' was here
/usr/include/sys/types.h:82: error: conflicting types for 'uid_t'
/usr/include/linux/types.h:26: error: previous declaration of 'uid_t' was here
In file included from /usr/include/sys/types.h:133,
from interface.c:27:
/usr/include/time.h:105: error: conflicting types for 'timer_t'
/usr/include/linux/types.h:22: error: previous declaration of 'timer_t' was here
In file included from /usr/include/sys/types.h:220,
from interface.c:27:
/usr/include/sys/select.h:78: error: conflicting types for 'fd_set'
/usr/include/linux/types.h:12: error: previous declaration of 'fd_set' was here
In file included from interface.c:27:
/usr/include/sys/types.h:235: error: conflicting types for 'blkcnt_t'
/usr/include/linux/types.h:124: error: previous declaration of 'blkcnt_t' was here
interface.c: In function 'interface_detect_beat_mii':
interface.c:106: warning: dereferencing type-punned pointer will break strict-aliasing rules
interface.c:115: warning: dereferencing type-punned pointer will break strict-aliasing rules
interface.c: In function 'interface_detect_beat_priv':
interface.c:134: warning: dereferencing type-punned pointer will break strict-aliasing rules
interface.c:143: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[3]: *** [interface.o] Error 1
make[3]: Leaving directory `/home/frank/builds/ifplugd-0.28/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/frank/builds/ifplugd-0.28/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/frank/builds/ifplugd-0.28'
make: *** [all] Error 2
bash-3.1$
Have you tried installing the package? Download it and run, as root:
Code:
installpkg ifplugd-0.28-i486-3alien.tgz
or create directories for ifplugd and libdaemon, get all the relevant files for each, then run the SlackBuild scripts?
I did not try that, but I was looking through the scripts in the /etc/rc.d folder to see which ones were running network services at start up and was able to solve the problem by changing the rc.inet1 shell script to have 'ath' as the variable for 'IFNAME' instead of 'eth'. I will still try to install 'ifplugd' with 'installpkg' since I imagine it isn't a bad thing to have. Thanks for the help.
Remove or comment out the eth ones and start with the wireless part.
Or, alter rc.inet1 so that it is not executable. Then you can start the wireless separately, with your own script, wpa-supplicant, or wicd.
Originally I had tried commenting out the eth devices in rc.inet1.conf but that did not work. Altering the rc.inet1 script to use ath instead of eth has worked out perfectly for me so I'm going to keep that solution. Thanks for the help though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.