slitaz-boot-scripts diff init @ rev 446
network.sh: stop wpa_cli interactive mode with static_ip
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Fri Oct 27 12:18:19 2017 -0400 (2017-10-27) |
parents | 6373374e4683 |
children | b92b0376b504 |
line diff
1.1 --- a/init Wed Mar 30 09:44:21 2016 +0200 1.2 +++ b/init Fri Oct 27 12:18:19 2017 -0400 1.3 @@ -58,6 +58,9 @@ 1.4 1.5 quit() { 1.6 [ -d /mnt$4/etc ] || return 1.7 + grep -q serial /proc/ioports && ! grep -q ttyS /mnt$4/etc/inittab && 1.8 + echo "ttyS0::respawn:/sbin/getty 115200,38400,9600,4800,2400 ttyS0" \ 1.9 + >> /mnt$4/etc/inittab 1.10 [ -n "$4" ] || grep -q 'tmpfs /mnt tmpfs' /proc/mounts || 1.11 busybox mount /mnt -o remount,ro 1.12 busybox mount --move /run /mnt/${1:-run} 1.13 @@ -194,9 +197,6 @@ 1.14 [ -d /proc/sys/dev/cdrom ] && 1.15 ln -s $(sed '/name/!d;s/.*:[^a-z]*//' /proc/sys/dev/cdrom/info) /dev/cdrom 1.16 1.17 -grep -q serial /proc/ioports && 1.18 -echo "ttyS0::respawn:/sbin/getty 115200,38400,9600,4800,2400 ttyS0" >> /etc/inittab 1.19 - 1.20 if use dmraid; then 1.21 dmraid -s | sed '/^type/!ds/.*: *//' | ldraid 1.22 [ ${root:0:4} = /dev ] ||