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
|
||||
# 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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue