소스 검색

Ensure that the admin user can initially sudo

Bob Mottram 9 년 전
부모
커밋
14e95ca957
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6
    1
      src/freedombone-image-customise

+ 6
- 1
src/freedombone-image-customise 파일 보기

149
     sudo su
149
     sudo su
150
     freedombone menuconfig
150
     freedombone menuconfig
151
 
151
 
152
-' > $rootdir/etc/init.d/motd
152
+' > $rootdir/etc/motd
153
 }
153
 }
154
 
154
 
155
 configure_ssh() {
155
 configure_ssh() {
168
     fi
168
     fi
169
 }
169
 }
170
 
170
 
171
+admin_user_sudo() {
172
+    echo "$MY_USERNAME  ALL=(ALL) ALL" >> $rootdir/etc/sudoers
173
+}
174
+
171
 continue_installation() {
175
 continue_installation() {
172
     # If a configuration file exists then run with it
176
     # If a configuration file exists then run with it
173
     # otherwise the interactive installer can be used
177
     # otherwise the interactive installer can be used
279
 
283
 
280
 configure_ssh
284
 configure_ssh
281
 configure_networking
285
 configure_networking
286
+admin_user_sudo
282
 continue_installation
287
 continue_installation
283
 
288
 
284
 cd /
289
 cd /