openwrt lift the occupation of the console serial port

the occupation of the console serial port

openwrt will console serial port configured to facilitate user control, we used the WNDR4300 to open the box can be seen as an example of a serial interface is drawn, and the boot can be printed bootloder linux start log. After a certain stage can start as a console login sometimes want their programs are using the serial port to send or receive data and want to start the serial console.

Specific operations

1, input vi /etc/sysctl.conf

 

 

 Add a line (do not know the vi editor to use their own Internet search) in the just opened file

kernel.printk=0 4 1 7

The following documents:

# Defaults are configured in /etc/sysctl.d/* and can be customized in this file
kernel.printk=0 4 1 7

Then save the file.

2, the input vi / etc / inittab

Comment out the file ":: askconsole: /usr/libexec/login.sh" became "# :: askconsole: /usr/libexec/login.sh", that is, a state

::sysinit:/etc/init.d/rcS S boot
::shutdown:/etc/init.d/rcS K shutdown
#::askconsole:/usr/libexec/login.sh

Then save the file.

3, restart the router

Guess you like

Origin www.cnblogs.com/zornlink/p/11587391.html