소스 검색

Abandon empty password

Bob Mottram 8 년 전
부모
커밋
997217983c
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0
    4
      src/freedombone-image-customise

+ 0
- 4
src/freedombone-image-customise 파일 보기

1226
 
1226
 
1227
 username=$MY_USERNAME
1227
 username=$MY_USERNAME
1228
 echo $"warning: creating initial user $username with well known password!"
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
 password=$MY_PASSWORD
1229
 password=$MY_PASSWORD
1234
 chroot "$rootdir" adduser --gecos $username --disabled-password $username
1230
 chroot "$rootdir" adduser --gecos $username --disabled-password $username
1235
 echo $username:$password | chroot $rootdir /usr/sbin/chpasswd
1231
 echo $username:$password | chroot $rootdir /usr/sbin/chpasswd