image / basefiles: make console password configurable
Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
5e85ae9e4c
commit
dc92917409
22 changed files with 48 additions and 42 deletions
|
@ -1,6 +1,7 @@
|
||||||
config system
|
config system
|
||||||
option hostname lede
|
option hostname lede
|
||||||
option timezone UTC
|
option timezone UTC
|
||||||
|
option ttylogin 0
|
||||||
|
|
||||||
config timeserver ntp
|
config timeserver ntp
|
||||||
list server 0.openwrt.pool.ntp.org
|
list server 0.openwrt.pool.ntp.org
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
::sysinit:/etc/init.d/rcS S boot
|
::sysinit:/etc/init.d/rcS S boot
|
||||||
::shutdown:/etc/init.d/rcS K shutdown
|
::shutdown:/etc/init.d/rcS K shutdown
|
||||||
::askconsole:/bin/ash --login
|
::askconsole:/usr/libexec/login.sh
|
||||||
|
|
5
package/base-files/files/usr/libexec/login.sh
Executable file
5
package/base-files/files/usr/libexec/login.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
[ "$(uci get system.@system[0].ttylogin)" == 1 ] || exec /bin/ash --login
|
||||||
|
|
||||||
|
exec /bin/login
|
|
@ -1212,10 +1212,10 @@ config BUSYBOX_DEFAULT_GETTY
|
||||||
default n
|
default n
|
||||||
config BUSYBOX_DEFAULT_LOGIN
|
config BUSYBOX_DEFAULT_LOGIN
|
||||||
bool
|
bool
|
||||||
default n
|
default y
|
||||||
config BUSYBOX_DEFAULT_LOGIN_SESSION_AS_CHILD
|
config BUSYBOX_DEFAULT_LOGIN_SESSION_AS_CHILD
|
||||||
bool
|
bool
|
||||||
default n
|
default y
|
||||||
config BUSYBOX_DEFAULT_LOGIN_SCRIPTS
|
config BUSYBOX_DEFAULT_LOGIN_SCRIPTS
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
::sysinit:/etc/init.d/rcS S boot
|
::sysinit:/etc/init.d/rcS S boot
|
||||||
::shutdown:/etc/init.d/rcS K shutdown
|
::shutdown:/etc/init.d/rcS K shutdown
|
||||||
tts/0::askfirst:/bin/ash --login
|
tts/0::askfirst:/usr/libexec/login.sh
|
||||||
ttyAM0::askfirst:/bin/ash --login
|
ttyAM0::askfirst:/usr/libexec/login.sh
|
||||||
tty1::askfirst:/bin/ash --login
|
tty1::askfirst:/usr/libexec/login.sh
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
::sysinit:/etc/init.d/rcS S boot
|
::sysinit:/etc/init.d/rcS S boot
|
||||||
::shutdown:/etc/init.d/rcS K shutdown
|
::shutdown:/etc/init.d/rcS K shutdown
|
||||||
::askconsole:/bin/ash --login
|
::askconsole:/usr/libexec/login.sh
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
::sysinit:/etc/init.d/rcS S boot
|
::sysinit:/etc/init.d/rcS S boot
|
||||||
::shutdown:/etc/init.d/rcS K shutdown
|
::shutdown:/etc/init.d/rcS K shutdown
|
||||||
tts/0::askfirst:/bin/ash --login
|
tts/0::askfirst:/usr/libexec/login.sh
|
||||||
ttyAMA0::askfirst:/bin/ash --login
|
ttyAMA0::askfirst:/usr/libexec/login.sh
|
||||||
tty1::askfirst:/bin/ash --login
|
tty1::askfirst:/usr/libexec/login.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
::sysinit:/etc/init.d/rcS S boot
|
::sysinit:/etc/init.d/rcS S boot
|
||||||
::shutdown:/etc/init.d/rcS K shutdown
|
::shutdown:/etc/init.d/rcS K shutdown
|
||||||
::askconsole:/bin/ash --login
|
::askconsole:/usr/libexec/login.sh
|
||||||
tty1::askfirst:/bin/ash --login
|
tty1::askfirst:/usr/libexec/login.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2013 The Linux Foundation. All rights reserved.
|
# Copyright (c) 2013 The Linux Foundation. All rights reserved.
|
||||||
::sysinit:/etc/init.d/rcS S boot
|
::sysinit:/etc/init.d/rcS S boot
|
||||||
::shutdown:/etc/init.d/rcS K shutdown
|
::shutdown:/etc/init.d/rcS K shutdown
|
||||||
ttyMSM0::askfirst:/bin/ash --login
|
ttyMSM0::askfirst:/usr/libexec/login.sh
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
::sysinit:/etc/init.d/rcS S boot
|
::sysinit:/etc/init.d/rcS S boot
|
||||||
::shutdown:/etc/init.d/rcS K stop
|
::shutdown:/etc/init.d/rcS K stop
|
||||||
ttyLTQ0::askfirst:/bin/ash --login
|
ttyLTQ0::askfirst:/usr/libexec/login.sh
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
::sysinit:/etc/init.d/rcS S boot
|
::sysinit:/etc/init.d/rcS S boot
|
||||||
::shutdown:/etc/init.d/rcS K shutdown
|
::shutdown:/etc/init.d/rcS K shutdown
|
||||||
tts/0::askfirst:/bin/ash --login
|
tts/0::askfirst:/usr/libexec/login.sh
|
||||||
ttyS0::askfirst:/bin/ash --login
|
ttyS0::askfirst:/usr/libexec/login.sh
|
||||||
ttyS1::askfirst:/bin/ash --login
|
ttyS1::askfirst:/usr/libexec/login.sh
|
||||||
ttyS2::askfirst:/bin/ash --login
|
ttyS2::askfirst:/usr/libexec/login.sh
|
||||||
tty1::askfirst:/bin/ash --login
|
tty1::askfirst:/usr/libexec/login.sh
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
::sysinit:/etc/init.d/rcS S boot
|
::sysinit:/etc/init.d/rcS S boot
|
||||||
::shutdown:/etc/init.d/rcS K shutdown
|
::shutdown:/etc/init.d/rcS K shutdown
|
||||||
ttyS0::askfirst:/bin/ash --login
|
ttyS0::askfirst:/usr/libexec/login.sh
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
::sysinit:/etc/init.d/rcS S boot
|
::sysinit:/etc/init.d/rcS S boot
|
||||||
::shutdown:/etc/init.d/rcS K shutdown
|
::shutdown:/etc/init.d/rcS K shutdown
|
||||||
ttyAMA0::askfirst:/bin/ash --login
|
ttyAMA0::askfirst:/usr/libexec/login.sh
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
::sysinit:/etc/init.d/rcS S boot
|
::sysinit:/etc/init.d/rcS S boot
|
||||||
::shutdown:/etc/init.d/rcS K shutdown
|
::shutdown:/etc/init.d/rcS K shutdown
|
||||||
ttyO0::askfirst:/bin/ash --login
|
ttyO0::askfirst:/usr/libexec/login.sh
|
||||||
ttyO2::askfirst:/bin/ash --login
|
ttyO2::askfirst:/usr/libexec/login.sh
|
||||||
tty1::askfirst:/bin/ash --login
|
tty1::askfirst:/usr/libexec/login.sh
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
::sysinit:/etc/init.d/rcS S boot
|
::sysinit:/etc/init.d/rcS S boot
|
||||||
::shutdown:/etc/init.d/rcS K shutdown
|
::shutdown:/etc/init.d/rcS K shutdown
|
||||||
tts/0::askfirst:/bin/ash --login
|
tts/0::askfirst:/usr/libexec/login.sh
|
||||||
ttyO2::askfirst:/bin/ash --login
|
ttyO2::askfirst:/usr/libexec/login.sh
|
||||||
tty1::askfirst:/bin/ash --login
|
tty1::askfirst:/usr/libexec/login.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
::sysinit:/etc/init.d/rcS S boot
|
::sysinit:/etc/init.d/rcS S boot
|
||||||
::shutdown:/etc/init.d/rcS K shutdown
|
::shutdown:/etc/init.d/rcS K shutdown
|
||||||
ttyS0::askfirst:/bin/ash --login
|
ttyS0::askfirst:/usr/libexec/login.sh
|
||||||
ttyS1::askfirst:/bin/ash --login
|
ttyS1::askfirst:/usr/libexec/login.sh
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
::sysinit:/etc/init.d/rcS S boot
|
::sysinit:/etc/init.d/rcS S boot
|
||||||
::shutdown:/etc/init.d/rcS K shutdown
|
::shutdown:/etc/init.d/rcS K shutdown
|
||||||
::askconsole:/bin/ash --login
|
::askconsole:/usr/libexec/login.sh
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
::sysinit:/etc/init.d/rcS S boot
|
::sysinit:/etc/init.d/rcS S boot
|
||||||
::shutdown:/etc/init.d/rcS K shutdown
|
::shutdown:/etc/init.d/rcS K shutdown
|
||||||
tts/0::askfirst:/bin/ash --login
|
tts/0::askfirst:/usr/libexec/login.sh
|
||||||
ttyAMA0::askfirst:/bin/ash --login
|
ttyAMA0::askfirst:/usr/libexec/login.sh
|
||||||
tty1::askfirst:/bin/ash --login
|
tty1::askfirst:/usr/libexec/login.sh
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
::sysinit:/etc/init.d/rcS S boot
|
::sysinit:/etc/init.d/rcS S boot
|
||||||
::shutdown:/etc/init.d/rcS K shutdown
|
::shutdown:/etc/init.d/rcS K shutdown
|
||||||
tts/0::askfirst:/bin/ash --login
|
tts/0::askfirst:/usr/libexec/login.sh
|
||||||
ttyS0::askfirst:/bin/ash --login
|
ttyS0::askfirst:/usr/libexec/login.sh
|
||||||
tty1::askfirst:/bin/ash --login
|
tty1::askfirst:/usr/libexec/login.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
::sysinit:/etc/init.d/rcS S boot
|
::sysinit:/etc/init.d/rcS S boot
|
||||||
::shutdown:/etc/init.d/rcS K shutdown
|
::shutdown:/etc/init.d/rcS K shutdown
|
||||||
ttyS0::askfirst:/bin/ash --login
|
ttyS0::askfirst:/usr/libexec/login.sh
|
||||||
tty1::askfirst:/bin/ash --login
|
tty1::askfirst:/usr/libexec/login.sh
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
::sysinit:/etc/init.d/rcS S boot
|
::sysinit:/etc/init.d/rcS S boot
|
||||||
::shutdown:/etc/init.d/rcS K stop
|
::shutdown:/etc/init.d/rcS K stop
|
||||||
tts/0::askfirst:/bin/ash --login
|
tts/0::askfirst:/usr/libexec/login.sh
|
||||||
hvc0::askfirst:/bin/ash --login
|
hvc0::askfirst:/usr/libexec/login.sh
|
||||||
tty1::askfirst:/bin/ash --login
|
tty1::askfirst:/usr/libexec/login.sh
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
::sysinit:/etc/init.d/rcS S boot
|
::sysinit:/etc/init.d/rcS S boot
|
||||||
::shutdown:/etc/init.d/rcS K shutdown
|
::shutdown:/etc/init.d/rcS K shutdown
|
||||||
::askconsole:/bin/ash --login
|
::askconsole:/usr/libexec/login.sh
|
||||||
|
|
Loading…
Reference in a new issue