Project name
This commit is contained in:
parent
caf1f53dd2
commit
7b6ef9755f
|
@ -38,7 +38,7 @@ export TEXTDOMAINDIR="/usr/share/locale"
|
||||||
MINIMAL_INSTALL="yes"
|
MINIMAL_INSTALL="yes"
|
||||||
|
|
||||||
MY_USERNAME='debian'
|
MY_USERNAME='debian'
|
||||||
MY_PASSWORD='freedombone'
|
MY_PASSWORD="${PROJECT_NAME}"
|
||||||
|
|
||||||
# IP address of the router (gateway)
|
# IP address of the router (gateway)
|
||||||
ROUTER_IP_ADDRESS="192.168.1.254"
|
ROUTER_IP_ADDRESS="192.168.1.254"
|
||||||
|
@ -167,7 +167,7 @@ Your system is not yet installed. To complete the process run the
|
||||||
following commands, then enter your details.
|
following commands, then enter your details.
|
||||||
|
|
||||||
sudo su
|
sudo su
|
||||||
freedombone menuconfig
|
${PROJECT_NAME} menuconfig
|
||||||
|
|
||||||
" > $rootdir/etc/motd
|
" > $rootdir/etc/motd
|
||||||
}
|
}
|
||||||
|
@ -232,7 +232,7 @@ EOF
|
||||||
echo ' else' >> $rootdir/root/.bashrc
|
echo ' else' >> $rootdir/root/.bashrc
|
||||||
echo ' ENTROPY=$(cat /proc/sys/kernel/random/entropy_avail)' >> $rootdir/root/.bashrc
|
echo ' ENTROPY=$(cat /proc/sys/kernel/random/entropy_avail)' >> $rootdir/root/.bashrc
|
||||||
echo ' if [ $ENTROPY -lt 500 ]; then' >> $rootdir/root/.bashrc
|
echo ' if [ $ENTROPY -lt 500 ]; then' >> $rootdir/root/.bashrc
|
||||||
echo ' dialog --backtitle "Freedombone initial setup process" --title "Password Generation" --msgbox "WARNING: The entropy available on this system is too low to generate a password.\n\nThe installation process cannot continue." 8 50' >> $rootdir/root/.bashrc
|
echo ' dialog --backtitle "Initial setup process" --title "Password Generation" --msgbox "WARNING: The entropy available on this system is too low to generate a password.\n\nThe installation process cannot continue." 8 50' >> $rootdir/root/.bashrc
|
||||||
echo ' exit' >> $rootdir/root/.bashrc
|
echo ' exit' >> $rootdir/root/.bashrc
|
||||||
echo ' fi' >> $rootdir/root/.bashrc
|
echo ' fi' >> $rootdir/root/.bashrc
|
||||||
echo ' NEW_USER_PASSWORD="$(openssl rand -base64 12 | cut -c1-10)"' >> $rootdir/root/.bashrc
|
echo ' NEW_USER_PASSWORD="$(openssl rand -base64 12 | cut -c1-10)"' >> $rootdir/root/.bashrc
|
||||||
|
@ -259,12 +259,12 @@ EOF
|
||||||
echo '$(printf `cat ~/login.txt`)"|chpasswd' >> $rootdir/root/.bashrc
|
echo '$(printf `cat ~/login.txt`)"|chpasswd' >> $rootdir/root/.bashrc
|
||||||
|
|
||||||
if [[ $MINIMAL_INSTALL == "no" ]]; then
|
if [[ $MINIMAL_INSTALL == "no" ]]; then
|
||||||
echo ' freedombone menuconfigfull' >> $rootdir/root/.bashrc
|
echo " ${PROJECT_NAME} menuconfigfull" >> $rootdir/root/.bashrc
|
||||||
else
|
else
|
||||||
echo ' freedombone menuconfig' >> $rootdir/root/.bashrc
|
echo " ${PROJECT_NAME} menuconfig" >> $rootdir/root/.bashrc
|
||||||
fi
|
fi
|
||||||
echo ' if [ "$?" = "0" ]; then' >> $rootdir/root/.bashrc
|
echo ' if [ "$?" = "0" ]; then' >> $rootdir/root/.bashrc
|
||||||
echo ' if [ -f ~/freedombone-completed.txt ]; then' >> $rootdir/root/.bashrc
|
echo " if [ -f ~/${PROJECT_NAME}-completed.txt ]; then" >> $rootdir/root/.bashrc
|
||||||
# Remove the initial setup files
|
# Remove the initial setup files
|
||||||
echo " rm /root/.initial_setup" >> $rootdir/root/.bashrc
|
echo " rm /root/.initial_setup" >> $rootdir/root/.bashrc
|
||||||
echo " rm /home/${MY_USERNAME}/.initial_setup" >> $rootdir/root/.bashrc
|
echo " rm /home/${MY_USERNAME}/.initial_setup" >> $rootdir/root/.bashrc
|
||||||
|
@ -358,8 +358,8 @@ cd /root/freedombone
|
||||||
make install
|
make install
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chroot "$rootdir" freedombone-image-hardware-setup 2>&1 | \
|
chroot "$rootdir" ${PROJECT_NAME}-image-hardware-setup 2>&1 | \
|
||||||
tee $rootdir/var/log/freedombone-image-hardware-setup.log
|
tee $rootdir/var/log/${PROJECT_NAME}-image-hardware-setup.log
|
||||||
|
|
||||||
rm $rootdir/usr/sbin/policy-rc.d
|
rm $rootdir/usr/sbin/policy-rc.d
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue