maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Problem: Replaced /etc/osso-af-init/real-af-base-apps (https://talk.maemo.org/showthread.php?t=15274)

Franko30 2008-01-18 01:45

Problem: Replaced /etc/osso-af-init/real-af-base-apps
 
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

coffeedrinker 2008-01-18 02:15

Re: Problem: Replaced /etc/osso-af-init/real-af-base-apps
 
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


Johnx 2008-01-18 02:28

Re: Problem: Replaced /etc/osso-af-init/real-af-base-apps
 
Looks like you learned the hard way.
echo bleh > file.txt, replaces it
echo bleh >> file.txt, appends it.

Franko30 2008-01-18 09:20

Re: Problem: Replaced /etc/osso-af-init/real-af-base-apps
 
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

iskarion 2008-01-18 11:43

Re: Problem: Replaced /etc/osso-af-init/real-af-base-apps
 
Quote:

Originally Posted by Franko30 (Post 129801)
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


coffeedrinker 2008-01-18 16:46

Re: Problem: Replaced /etc/osso-af-init/real-af-base-apps
 
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. :)


All times are GMT. The time now is 04:04.

vBulletin® Version 3.8.8