Bob Mottram před 9 roky
rodič
revize
7b6ef9755f
1 změnil soubory, kde provedl 8 přidání a 8 odebrání
  1. 8
    8
      src/freedombone-image-customise

+ 8
- 8
src/freedombone-image-customise Zobrazit soubor

38
 MINIMAL_INSTALL="yes"
38
 MINIMAL_INSTALL="yes"
39
 
39
 
40
 MY_USERNAME='debian'
40
 MY_USERNAME='debian'
41
-MY_PASSWORD='freedombone'
41
+MY_PASSWORD="${PROJECT_NAME}"
42
 
42
 
43
 # IP address of the router (gateway)
43
 # IP address of the router (gateway)
44
 ROUTER_IP_ADDRESS="192.168.1.254"
44
 ROUTER_IP_ADDRESS="192.168.1.254"
167
 following commands, then enter your details.
167
 following commands, then enter your details.
168
 
168
 
169
     sudo su
169
     sudo su
170
-    freedombone menuconfig
170
+    ${PROJECT_NAME} menuconfig
171
 
171
 
172
 " > $rootdir/etc/motd
172
 " > $rootdir/etc/motd
173
 }
173
 }
232
     echo '    else' >> $rootdir/root/.bashrc
232
     echo '    else' >> $rootdir/root/.bashrc
233
     echo '        ENTROPY=$(cat /proc/sys/kernel/random/entropy_avail)' >> $rootdir/root/.bashrc
233
     echo '        ENTROPY=$(cat /proc/sys/kernel/random/entropy_avail)' >> $rootdir/root/.bashrc
234
     echo '        if [ $ENTROPY -lt 500 ]; then' >> $rootdir/root/.bashrc
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
     echo '            exit' >> $rootdir/root/.bashrc
236
     echo '            exit' >> $rootdir/root/.bashrc
237
     echo '        fi' >> $rootdir/root/.bashrc
237
     echo '        fi' >> $rootdir/root/.bashrc
238
     echo '        NEW_USER_PASSWORD="$(openssl rand -base64 12 | cut -c1-10)"' >> $rootdir/root/.bashrc
238
     echo '        NEW_USER_PASSWORD="$(openssl rand -base64 12 | cut -c1-10)"' >> $rootdir/root/.bashrc
259
     echo '$(printf `cat ~/login.txt`)"|chpasswd' >> $rootdir/root/.bashrc
259
     echo '$(printf `cat ~/login.txt`)"|chpasswd' >> $rootdir/root/.bashrc
260
 
260
 
261
 	if [[ $MINIMAL_INSTALL == "no" ]]; then
261
 	if [[ $MINIMAL_INSTALL == "no" ]]; then
262
-		echo '    freedombone menuconfigfull' >> $rootdir/root/.bashrc
262
+		echo "    ${PROJECT_NAME} menuconfigfull" >> $rootdir/root/.bashrc
263
 	else
263
 	else
264
-		echo '    freedombone menuconfig' >> $rootdir/root/.bashrc
264
+		echo "    ${PROJECT_NAME} menuconfig" >> $rootdir/root/.bashrc
265
 	fi
265
 	fi
266
     echo '    if [ "$?" = "0" ]; then' >> $rootdir/root/.bashrc
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
     # Remove the initial setup files
268
     # Remove the initial setup files
269
     echo "            rm /root/.initial_setup" >> $rootdir/root/.bashrc
269
     echo "            rm /root/.initial_setup" >> $rootdir/root/.bashrc
270
     echo "            rm /home/${MY_USERNAME}/.initial_setup" >> $rootdir/root/.bashrc
270
     echo "            rm /home/${MY_USERNAME}/.initial_setup" >> $rootdir/root/.bashrc
358
 make install
358
 make install
359
 EOF
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
 rm $rootdir/usr/sbin/policy-rc.d
364
 rm $rootdir/usr/sbin/policy-rc.d
365
 
365