forked from freifunk-franken/firmware
- fix shadow password support
Signed-off-by: Steffen Pankratz <kratz00@gmx.de> Reveiwed-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
This commit is contained in:
parent
01690a3153
commit
a275253155
|
@ -1,3 +0,0 @@
|
||||||
root:$1$OmvoKpjK$e.lPVnBxsrAbNV4EoH3xb1:0:0:root:/root:/bin/ash
|
|
||||||
nobody:*:65534:65534:nobody:/var:/bin/false
|
|
||||||
daemon:*:65534:65534:daemon:/var:/bin/false
|
|
8
build_patches/set_root_password.patch
Normal file
8
build_patches/set_root_password.patch
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
--- package/base-files/files/etc/shadow
|
||||||
|
+++ package/base-files/files/etc/shadow
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-root::0:0:99999:7:::
|
||||||
|
+root:$1$OmvoKpjK$e.lPVnBxsrAbNV4EoH3xb1:0:0:99999:7:::
|
||||||
|
daemon:*:0:0:99999:7:::
|
||||||
|
ftp:*:0:0:99999:7:::
|
||||||
|
network:*:0:0:99999:7:::
|
|
@ -159,6 +159,9 @@ prepare() {
|
||||||
# This changes the default behavior of sysupgrade to not save the config
|
# This changes the default behavior of sysupgrade to not save the config
|
||||||
patch -p0 -d "$target" -i "$PWD"/build_patches/sysupgrade_no_config_save.patch
|
patch -p0 -d "$target" -i "$PWD"/build_patches/sysupgrade_no_config_save.patch
|
||||||
|
|
||||||
|
# set default password to 'ffol'
|
||||||
|
patch -p0 -d "$target" -i "$PWD"/build_patches/set_root_password.patch
|
||||||
|
|
||||||
#saves ~200MB for each build
|
#saves ~200MB for each build
|
||||||
test -d ./src/dl || mkdir ./src/dl
|
test -d ./src/dl || mkdir ./src/dl
|
||||||
ln -s ../../src/dl "$target"/dl
|
ln -s ../../src/dl "$target"/dl
|
||||||
|
|
Loading…
Reference in New Issue
Block a user