diff options
author | Mario Izquierdo (mariodebian) <mariodebian@gmail.com> | 2011-03-17 16:26:08 +0100 |
---|---|---|
committer | Mario Izquierdo (mariodebian) <mariodebian@gmail.com> | 2011-03-17 16:26:08 +0100 |
commit | 8b6bcc17433c87a2239b2f4ec1a6a18ea8ea53cc (patch) | |
tree | 2e38fb7f7a39ce5edcbfc07aac25dc4489ad38ff /scripts | |
parent | 9b881b717443ef897475f071e575223fdb13fce7 (diff) |
scripts/tcos-bottom/25startx: Use getinfo to get NETWORK_IP
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/tcos-bottom/25startx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/tcos-bottom/25startx b/scripts/tcos-bottom/25startx index 9bbe8f5..3a7c0a9 100755 --- a/scripts/tcos-bottom/25startx +++ b/scripts/tcos-bottom/25startx @@ -35,7 +35,8 @@ if [ ! -f $XAUTHORITY ]; then value=0 log_begin_msg "Creating magic cookie for X" _log "STARTX creating cookie..." - MYIP=$(awk -F"=" '/^ip=/ {print $2}' /tmp/net.data) + #MYIP=$(awk -F"=" '/^ip=/ {print $2}' /tmp/net.data) + MYIP=$(getinfo.sh -i NETWORK_IP) cookie=$(mcookie || value=1) xauth -f $XAUTHORITY -q add :0 MIT-MAGIC-COOKIE-1 $cookie 2>> /tmp/initramfs.debug || value=1 xauth -f $XAUTHORITY -q add localhost:0 MIT-MAGIC-COOKIE-1 $cookie 2>> /tmp/initramfs.debug || value=1 |