瀏覽代碼

Include username in setup

Bob Mottram 8 年之前
父節點
當前提交
637f18d5a5
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      src/freedombone-image-customise

+ 2
- 1
src/freedombone-image-customise 查看文件

@@ -333,7 +333,8 @@ if [ -f ~/.initial_setup ]; then
333 333
 fi
334 334
 EOF
335 335
 
336
-    echo 'SSH_PORT=${SSH_PORT}' >> $rootdir/root/.bashrc
336
+    echo "MY_USERNAME=${MY_USERNAME}" >> $rootdir/root/.bashrc
337
+    echo "SSH_PORT=${SSH_PORT}" >> $rootdir/root/.bashrc
337 338
     echo '# initial setup of the system' >> $rootdir/root/.bashrc
338 339
     echo 'if [ -f ~/.initial_setup ]; then' >> $rootdir/root/.bashrc
339 340
     echo '    if [ -f ~/login.txt ]; then' >> $rootdir/root/.bashrc