Path correction
This commit is contained in:
parent
ace1114013
commit
4ede9b7028
|
@ -195,7 +195,7 @@ create_generic_image() {
|
||||||
# The presence of this file indicates that the initial
|
# The presence of this file indicates that the initial
|
||||||
# setup has not yet been completed
|
# setup has not yet been completed
|
||||||
touch $rootdir/home/$MY_USERNAME/.initial_setup
|
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
|
cat >> $rootdir/home/$MY_USERNAME/.bashrc <<EOF
|
||||||
# initial setup of the system
|
# initial setup of the system
|
||||||
|
@ -228,19 +228,19 @@ if [ -f ~/.initial_setup ]; then
|
||||||
fi
|
fi
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat >> $rootdir/home/root/.bashrc <<EOF
|
cat >> $rootdir/root/.bashrc <<EOF
|
||||||
# initial setup of the system
|
# initial setup of the system
|
||||||
if [ -f ~/.initial_setup ]; then
|
if [ -f ~/.initial_setup ]; then
|
||||||
EOF
|
EOF
|
||||||
echo -n " echo \"${MY_USERNAME}:" >> /home/root/.bashrc
|
echo -n " echo \"${MY_USERNAME}:" >> /root/.bashrc
|
||||||
echo -n '$(cat /home/' >> /home/root/.bashrc
|
echo -n '$(cat /home/' >> /root/.bashrc
|
||||||
echo "${MY_USERNAME}/login.txt)\"|chpasswd" >> /home/root/.bashrc
|
echo "${MY_USERNAME}/login.txt)\"|chpasswd" >> /root/.bashrc
|
||||||
cat >> $rootdir/home/root/.bashrc <<EOF
|
cat >> $rootdir/root/.bashrc <<EOF
|
||||||
freedombone menuconfig
|
freedombone menuconfig
|
||||||
rm ~/.initial_setup
|
rm ~/.initial_setup
|
||||||
EOF
|
EOF
|
||||||
echo " shred -zu /home/${MY_USERNAME}/login.txt" >> $rootdir/home/root/.bashrc
|
echo " shred -zu /home/${MY_USERNAME}/login.txt" >> $rootdir/root/.bashrc
|
||||||
cat >> $rootdir/home/root/.bashrc <<EOF
|
cat >> $rootdir/root/.bashrc <<EOF
|
||||||
fi
|
fi
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue