瀏覽代碼

Abandon empty password

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

+ 0
- 4
src/freedombone-image-customise 查看文件

@@ -1226,10 +1226,6 @@ export TMP=/tmp/ TMPDIR=/tmp/
1226 1226
 
1227 1227
 username=$MY_USERNAME
1228 1228
 echo $"warning: creating initial user $username with well known password!"
1229
-if [[ $VARIANT == "meshclient" || $VARIANT == "meshusb" ]]; then
1230
-	# on the mesh client don't use a password by default
1231
-	MY_PASSWORD=''
1232
-fi
1233 1229
 password=$MY_PASSWORD
1234 1230
 chroot "$rootdir" adduser --gecos $username --disabled-password $username
1235 1231
 echo $username:$password | chroot $rootdir /usr/sbin/chpasswd