OSDN Git Service
(root)
/
instantos
/
instantOS.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
new pidfile
[instantos/instantOS.git]
/
programs
/
instantpassword
1
#!/bin/bash
2
3
# instantmenu wrapper to be used as $SUDO_ASKPASS
4
5
if [ -n "$PASSPROMPT" ]; then
6
PROMPT="$PASSPROMPT"
7
else
8
PROMPT="enter password"
9
fi
10
11
PASSWORD="$(echo '' | instantmenu -c -bw 4 -p " $PROMPT " -P -h -1)"
12
echo "$PASSWORD"