projects
/
shutils.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
bib2html.py: Turn into python3
[shutils.git]
/
udev
/
scripts
/
usb_xprofile.sh
1
#!/bin/sh
2
3
.
/
usr
/
local
/
bin
/
getXenv.inc
4
getXconsole
5
6
if
[
-n
"
$XUSER
"
];
then
7
USER_HOME
=
$
(
getent passwd
$XUSER
| cut
-d
:
-f6
)
8
FN
=
"
$USER_HOME
/.usb_xprofile"
9
if
[
-f
"
$FN
"
];
then
10
(
11
# Give X time to hear about the new keyboard
12
sleep
0.5
13
su
$XUSER
-c
"/bin/sh
\"
$FN
\"
"
14
) &
15
fi
16
fi