Added automatic root password
This commit is contained in:
parent
3dd9967f47
commit
cc9ac5cd36
1
build.sh
1
build.sh
@ -32,6 +32,7 @@ chmod 400 target/overlay/root/flag
|
|||||||
|
|
||||||
echo "[+] Adding customization files"
|
echo "[+] Adding customization files"
|
||||||
cp -R buildroot/* target/buildroot # copy buildroot configs
|
cp -R buildroot/* target/buildroot # copy buildroot configs
|
||||||
|
sed -i "s/###ROOTPASSWORD###/$password/g" target/buildroot/configs/pcengines_apu2_defconfig
|
||||||
cp -R conf/* target/overlay # copy target system config files
|
cp -R conf/* target/overlay # copy target system config files
|
||||||
cp -R webpanel/* target/overlay/var/www/html # copy the webpanel
|
cp -R webpanel/* target/overlay/var/www/html # copy the webpanel
|
||||||
cp -R update/update.sh target/overlay #copy the update script and certificate
|
cp -R update/update.sh target/overlay #copy the update script and certificate
|
||||||
|
@ -5,6 +5,8 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y
|
|||||||
BR2_TARGET_GENERIC_HOSTNAME="cros"
|
BR2_TARGET_GENERIC_HOSTNAME="cros"
|
||||||
BR2_TARGET_GENERIC_ISSUE="1337 Linux"
|
BR2_TARGET_GENERIC_ISSUE="1337 Linux"
|
||||||
BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
|
BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
|
||||||
|
BR2_TARGET_ENABLE_ROOT_LOGIN=y
|
||||||
|
BR2_TARGET_GENERIC_ROOT_PASSWD="###ROOTPASSWORD###"
|
||||||
BR2_SYSTEM_DHCP="eth0"
|
BR2_SYSTEM_DHCP="eth0"
|
||||||
BR2_ROOTFS_OVERLAY="../overlay"
|
BR2_ROOTFS_OVERLAY="../overlay"
|
||||||
BR2_LINUX_KERNEL=y
|
BR2_LINUX_KERNEL=y
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$site = "crOS";
|
$site = "crOS";
|
||||||
$flag = "##FLAG1##";
|
$flag = "###FLAG1###";
|
||||||
$interface = "wlan0";
|
$interface = "wlan0";
|
||||||
$blacklist = array(';', '#', '(', ')', '|', '&', ' ', "\t", '<', '>');
|
$blacklist = array(';', '#', '(', ')', '|', '&', ' ', "\t", '<', '>');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user