Notices


Reply
Thread Tools
Franko30's Avatar
Posts: 48 | Thanked: 12 times | Joined on Jan 2008 @ Germany
#1
Hi,

in my efforts to add GPE-calendar to /etc/osso-af-init/real-af-base-apps I accidentally replaced its original content.

As I couldn't add the line

/usr/bin/gpe-calendar &

to the real-af-base-apps (not even with emelFM2 started from Terminal after sudo gainroot) I thought "Hey there was this command in the host mode thread to add content to a file"

Therefore I used

echo "/usr/bin/gpe-calendar &" > /etc/osso-af-init/real-af-base-apps

I thought this command appends the given text to a file, but instead it replaces everything. Now the real-af-base-apps only contains gpe-calendar.

Does anybody know from where I could get the original content of this file for OS2008?

Thanks

Franko30
 
Posts: 168 | Thanked: 51 times | Joined on Jun 2007
#2
I really recommend anyone messing with anything in the /etc/osso-af-init/ directory to only be working from a mmc install. You mess that stuff up and you can't always reboot:

Here is the contents of that file:
Code:
#!/bin/sh
#
# This file is part of osso-af-startup.
#
# Copyright (C) 2004-2006 Nokia Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA

CONNECTIVITY_UI_SCRIPT=$AF_INIT_DIR/osso-connectivity-ui.sh
case "$1" in
start)

  source $SESSION_BUS_ADDRESS_FILE

  if [ -f /tmp/run-osso-backup-finish-restore ]; then
    $AF_INIT_DIR/osso-backup-finish-restore.sh
    rm -f /tmp/run-osso-backup-finish-restore
  fi

  if [ -x $CONNECTIVITY_UI_SCRIPT ]; then
    source $CONNECTIVITY_UI_SCRIPT start
  fi

  if [ -x /usr/bin/hwkbd-reconfig ]; then
          /usr/bin/hwkbd-reconfig
  fi

  if [ -x $AF_INIT_DIR/osso-media-server.sh ]; then
    $AF_INIT_DIR/osso-media-server.sh start &
  fi

  if [ -f /tmp/.check_auto_install ]; then
    dbus-send --system --dest=com.nokia.ke_recv --type=method_call \
      --print-reply /com/nokia/ke_recv/check_auto_install \
      com.nokia.ke_recv.foo
    rm -f /tmp/.check_auto_install
  fi

  ;;
stop)

  source $AF_INIT_DIR/clipboard.sh stop
  source $AF_INIT_DIR/keyboard.sh stop

  if [ -x $CONNECTIVITY_UI_SCRIPT ]; then
    source $CONNECTIVITY_UI_SCRIPT stop
  fi

  ;;
restart)
  echo "$0: not implemented"
  exit 1
  ;;
force-reload)
  echo "$0: not implemented"
  exit 1
  ;;
*)
  echo "Usage: $0 {start|stop}"
  exit 1
  ;;
esac
 

The Following User Says Thank You to coffeedrinker For This Useful Post:
Johnx's Avatar
Posts: 643 | Thanked: 628 times | Joined on Mar 2007 @ Seattle (or thereabouts)
#3
Looks like you learned the hard way.
echo bleh > file.txt, replaces it
echo bleh >> file.txt, appends it.
 

The Following User Says Thank You to Johnx For This Useful Post:
Franko30's Avatar
Posts: 48 | Thanked: 12 times | Joined on Jan 2008 @ Germany
#4
Hi,

I know I messed up. It's the first time in about 3 years I made a seriuos Linux mistake without having backed up the relevant files first.

FYI
I was able to restart my tablet, with GPE starting up automatically (as it was the only entry in real-af-base-apps).

The only pproblem I encountered so far was that the standard movie/audio player stopped playing files (although it starts up).

Does anybody know which part of the real-af-base-apps might be relevant for this behaviour?

Thanks again for the help - it saved me from re-flashing and re-installing all the apps and my saved data...

Cheers

Franko30
 
Posts: 161 | Thanked: 99 times | Joined on Jan 2008
#5
Originally Posted by Franko30 View Post
Does anybody know which part of the real-af-base-apps might be relevant for this behaviour?
I guess this part
Code:
  if [ -x $AF_INIT_DIR/osso-media-server.sh ]; then
    $AF_INIT_DIR/osso-media-server.sh start &
  fi
 
Posts: 168 | Thanked: 51 times | Joined on Jun 2007
#6
Well, I just said what I did about backing up because I've hacked up those files so many times in so many different ways. Can't help myself. But I've also got caught in a reboot cycle a couple of times and since it was only on my flash card, it was an easy fix.

Glad you could boot and got it fixed though.
 
Reply


 
Forum Jump


All times are GMT. The time now is 01:37.