1 |
Le Thu, 14 Jul 2005 14:57:53 -0400, Chris Gianelloni a écrit : |
2 |
|
3 |
> I just did it like this: |
4 |
> |
5 |
> sed -i 's/##STARTX/su - $first_user -c "source /etc/profile && |
6 |
> startx"/' /root/.bashrc |
7 |
|
8 |
??? |
9 |
|
10 |
- $first_user won't be used |
11 |
- too much '/' |
12 |
- & will be replaced |
13 |
|
14 |
In the way with "'", it should be : |
15 |
sed -i 's|##STARTX|su - '"${first_user}"' -c "source /etc/profile \&\& |
16 |
startx"|' /root/.bashrc |
17 |
|
18 |
no ? |
19 |
|
20 |
-- |
21 |
Christophe PEREZ |
22 |
-- |
23 |
gentoo-catalyst@g.o mailing list |