Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/scripts/enable_localaccount.sh

Issue 591001: move enable_localaccount.sh, make pam_offline use it (Closed)
Patch Set: fix comment Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/platform/pam_offline/username_password.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash
2
3 set -e
4
5 if [ -z $1 ]
6 then
7 echo "Usage: $0 localaccount_username"
8 exit 1
9 fi
10
11 echo "Enabling local account $1@gmail.com."
12 echo "Remove ../platform/pam_google/pam_localaccount.h and "
13 echo "../platform/pam_offline/pam_localaccount.h to disable."
14
15 cat <<EOF > ../platform/pam_google/pam_localaccount.h
16 // local username for Chrome OS pam
17 // This file is auto-generated by enable_localaccount.sh
18
19 #ifndef CHROMEOS_PAM_LOCALACCOUNT_H_
20 #define CHROMEOS_PAM_LOCALACCOUNT_H_
21
22 namespace chromeos_pam {
23 const char kLocalAccount[] = "$1@gmail.com";
24 }
25
26 #endif // CHROMEOS_PAM_LOCALACCOUNT_H_
27 EOF
28
29 cat <<EOF > ../platform/pam_offline/pam_localaccount.h
30 // local username for Chrome OS pam
31 // This file is auto-generated by enable_localaccount.sh
32
33 #ifndef CHROMEOS_PAM_LOCALACCOUNT_H_
34 #define CHROMEOS_PAM_LOCALACCOUNT_H_
35
36 namespace pam_offline {
37 const char kLocalAccount[] = "$1@gmail.com";
38 }
39
40 #endif // CHROMEOS_PAM_LOCALACCOUNT_H_
41 EOF
OLDNEW
« no previous file with comments | « src/platform/pam_offline/username_password.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698