O'Reilly logo

Linux® For Dummies®, 8th Edition by Richard Blum, Dee-Ann LeBlanc

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Step 6: Save Your Hard Work

After typing all those commands at the command prompt, you’ve got a working bridge between the wired network card and the wireless network card. The only problem is all that work goes away when you reboot the system. Ouch.

Instead of having to type all the bridging commands every time you boot your system, the smart thing to do is to get the commands to run automatically when the system boots. The easiest way to do that is to place the commands in a script that runs at boot time.

The most likely candidate for that is the /etc/rc.local file. This file contains script entries that are run at the end of each boot up.

Here’s how to get your commands into that script:

1.
Log into the Fedora system as the root user. You need root permissions to modify the rc.local file, so the easiest way to do that is to just log in as root.
2.
Click ApplicationsAccessoriesText Editor. This command starts the gedit text editor program.
3.
Click the Open icon in the toolbar, find the /etc folder, and then select the rc.local file to open.
4.
Add the brctl command line entries typed in Step 5 of the preceding step list to the file. When referencing the brctl and ifconfig commands in the rc.local file, use the full pathname to the commands (/usr/sbin/brctl and/sbin/ifconfig). The ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required