Bladeren bron

Project name

Bob Mottram 9 jaren geleden
bovenliggende
commit
7b6ef9755f
1 gewijzigde bestanden met toevoegingen van 8 en 8 verwijderingen
  1. 8
    8
      src/freedombone-image-customise

+ 8
- 8
src/freedombone-image-customise Bestand weergeven

@@ -38,7 +38,7 @@ export TEXTDOMAINDIR="/usr/share/locale"
38 38
 MINIMAL_INSTALL="yes"
39 39
 
40 40
 MY_USERNAME='debian'
41
-MY_PASSWORD='freedombone'
41
+MY_PASSWORD="${PROJECT_NAME}"
42 42
 
43 43
 # IP address of the router (gateway)
44 44
 ROUTER_IP_ADDRESS="192.168.1.254"
@@ -167,7 +167,7 @@ Your system is not yet installed. To complete the process run the
167 167
 following commands, then enter your details.
168 168
 
169 169
     sudo su
170
-    freedombone menuconfig
170
+    ${PROJECT_NAME} menuconfig
171 171
 
172 172
 " > $rootdir/etc/motd
173 173
 }
@@ -232,7 +232,7 @@ EOF
232 232
     echo '    else' >> $rootdir/root/.bashrc
233 233
     echo '        ENTROPY=$(cat /proc/sys/kernel/random/entropy_avail)' >> $rootdir/root/.bashrc
234 234
     echo '        if [ $ENTROPY -lt 500 ]; then' >> $rootdir/root/.bashrc
235
-    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
235
+    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
236 236
     echo '            exit' >> $rootdir/root/.bashrc
237 237
     echo '        fi' >> $rootdir/root/.bashrc
238 238
     echo '        NEW_USER_PASSWORD="$(openssl rand -base64 12 | cut -c1-10)"' >> $rootdir/root/.bashrc
@@ -259,12 +259,12 @@ EOF
259 259
     echo '$(printf `cat ~/login.txt`)"|chpasswd' >> $rootdir/root/.bashrc
260 260
 
261 261
 	if [[ $MINIMAL_INSTALL == "no" ]]; then
262
-		echo '    freedombone menuconfigfull' >> $rootdir/root/.bashrc
262
+		echo "    ${PROJECT_NAME} menuconfigfull" >> $rootdir/root/.bashrc
263 263
 	else
264
-		echo '    freedombone menuconfig' >> $rootdir/root/.bashrc
264
+		echo "    ${PROJECT_NAME} menuconfig" >> $rootdir/root/.bashrc
265 265
 	fi
266 266
     echo '    if [ "$?" = "0" ]; then' >> $rootdir/root/.bashrc
267
-    echo '        if [ -f ~/freedombone-completed.txt ]; then' >> $rootdir/root/.bashrc
267
+    echo "        if [ -f ~/${PROJECT_NAME}-completed.txt ]; then" >> $rootdir/root/.bashrc
268 268
     # Remove the initial setup files
269 269
     echo "            rm /root/.initial_setup" >> $rootdir/root/.bashrc
270 270
     echo "            rm /home/${MY_USERNAME}/.initial_setup" >> $rootdir/root/.bashrc
@@ -358,8 +358,8 @@ cd /root/freedombone
358 358
 make install
359 359
 EOF
360 360
 
361
-chroot "$rootdir" freedombone-image-hardware-setup 2>&1 | \
362
-    tee $rootdir/var/log/freedombone-image-hardware-setup.log
361
+chroot "$rootdir" ${PROJECT_NAME}-image-hardware-setup 2>&1 | \
362
+    tee $rootdir/var/log/${PROJECT_NAME}-image-hardware-setup.log
363 363
 
364 364
 rm $rootdir/usr/sbin/policy-rc.d
365 365