Skip to content
Snippets Groups Projects
Commit 4ede9b70 authored by Bob Mottram's avatar Bob Mottram
Browse files

Path correction

parent ace11140
No related branches found
No related tags found
No related merge requests found
......@@ -195,7 +195,7 @@ create_generic_image() {
# The presence of this file indicates that the initial
# setup has not yet been completed
touch $rootdir/home/$MY_USERNAME/.initial_setup
touch $rootdir/home/root/.initial_setup
touch $rootdir/root/.initial_setup
cat >> $rootdir/home/$MY_USERNAME/.bashrc <<EOF
# initial setup of the system
......@@ -228,19 +228,19 @@ if [ -f ~/.initial_setup ]; then
fi
EOF
cat >> $rootdir/home/root/.bashrc <<EOF
cat >> $rootdir/root/.bashrc <<EOF
# initial setup of the system
if [ -f ~/.initial_setup ]; then
EOF
echo -n " echo \"${MY_USERNAME}:" >> /home/root/.bashrc
echo -n '$(cat /home/' >> /home/root/.bashrc
echo "${MY_USERNAME}/login.txt)\"|chpasswd" >> /home/root/.bashrc
cat >> $rootdir/home/root/.bashrc <<EOF
echo -n " echo \"${MY_USERNAME}:" >> /root/.bashrc
echo -n '$(cat /home/' >> /root/.bashrc
echo "${MY_USERNAME}/login.txt)\"|chpasswd" >> /root/.bashrc
cat >> $rootdir/root/.bashrc <<EOF
freedombone menuconfig
rm ~/.initial_setup
EOF
echo " shred -zu /home/${MY_USERNAME}/login.txt" >> $rootdir/home/root/.bashrc
cat >> $rootdir/home/root/.bashrc <<EOF
echo " shred -zu /home/${MY_USERNAME}/login.txt" >> $rootdir/root/.bashrc
cat >> $rootdir/root/.bashrc <<EOF
fi
EOF
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment