Merge pull request #24 from spycat88/dont-rotate-root-password
distro: default root password to 'rocknix'
This commit is contained in:
commit
00ef41e83f
3 changed files with 3 additions and 4 deletions
|
@ -32,7 +32,7 @@
|
|||
BUG_REPORT_URL="https://rocknix.org"
|
||||
|
||||
# Root password to integrate in the target system
|
||||
ROOT_PASSWORD="system generated"
|
||||
ROOT_PASSWORD="rocknix"
|
||||
|
||||
# Remove kernel and system files from the release directory.
|
||||
COREELEC_TARGET_REMOVE="kernel_system"
|
||||
|
|
|
@ -152,7 +152,7 @@ pokemini.ratio=3/2
|
|||
psx.integerscale=0
|
||||
psx.ratio=4/3
|
||||
rotate.root.password=0
|
||||
root.password=root
|
||||
root.password=rocknix
|
||||
samba.enabled=0
|
||||
saturn.integerscale=0
|
||||
saturn.ratio=4/3
|
||||
|
|
|
@ -169,12 +169,11 @@ post_install() {
|
|||
rm -f ${INSTALL}/usr/bin/sh
|
||||
ln -s bash ${INSTALL}/usr/bin/sh
|
||||
fi
|
||||
ROOT_PWD="`${TOOLCHAIN}/bin/cryptpw -m sha512 ${ROOT_PASSWORD}`"
|
||||
|
||||
echo "chmod 4755 ${INSTALL}/usr/bin/busybox" >> ${FAKEROOT_SCRIPT}
|
||||
echo "chmod 000 ${INSTALL}/usr/cache/shadow" >> ${FAKEROOT_SCRIPT}
|
||||
|
||||
add_user root "${ROOT_PWD}" 0 0 "Root User" "/storage" "/bin/sh"
|
||||
add_user root "${ROOT_PASSWORD}" 0 0 "Root User" "/storage" "/bin/sh"
|
||||
add_group root 0
|
||||
add_group users 100
|
||||
|
||||
|
|
Loading…
Reference in a new issue