LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-28-2010, 05:46 AM   #1
joham34
Member
 
Registered: Oct 2009
Location: Greece
Distribution: ubuntu 14.04
Posts: 78

Rep: Reputation: 3
how to change permanently a script in etc


Hello everybody.
Newbie but Linux enthousiast here.
I play MAME in Ubuntu 9.10 and every time i boot my PC I calibrate my joystick with jscal. The correction values are stored in a script ( /etc/joystick.cal ) but when I reboot, the old values are written again in so I have either to repeat calibration or open the script and give the right correction values (which I have stored somewhere).
So , what is the way to save my changes in this script permanently ?
Thanks in advance
 
Old 04-28-2010, 06:01 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
The location and name of /etc/joystick.cal suggest that it is a configuration file, not a script. There's some info about setting up joysticks on ubuntu here.
 
Old 04-28-2010, 06:52 AM   #3
joham34
Member
 
Registered: Oct 2009
Location: Greece
Distribution: ubuntu 14.04
Posts: 78

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by catkin View Post
The location and name of /etc/joystick.cal suggest that it is a configuration file, not a script. There's some info about setting up joysticks on ubuntu here.
I have already tried jscalibrator, didnt work for me . jscal works fine but I have to repeat calibration after boot, this is the issue
 
Old 04-28-2010, 08:49 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,549
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Quote:
Originally Posted by joham34 View Post
I have already tried jscalibrator, didnt work for me . jscal works fine but I have to repeat calibration after boot, this is the issue
Why not just save the calibration data or backup the '/etc/joystick.cal' in '/etc/joystick.cal-restore' file then just copy that back to '/etc/joystick.cal' after a boot.
 
Old 04-28-2010, 09:12 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by onebuck View Post
Why not just save the calibration data or backup the '/etc/joystick.cal' in '/etc/joystick.cal-restore' file then just copy that back to '/etc/joystick.cal' after a boot.
Simple but effective workaround Could be done during the boot, that is by a boot script.

Last edited by catkin; 04-28-2010 at 09:12 AM. Reason: but->boot
 
Old 04-29-2010, 01:18 AM   #6
joham34
Member
 
Registered: Oct 2009
Location: Greece
Distribution: ubuntu 14.04
Posts: 78

Original Poster
Rep: Reputation: 3
Really simple and effective!

Yes, it solved the problem. Thank you
 
Old 04-29-2010, 08:52 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,549
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Glad it worked.

Please mark the post as [Solved] via the Thread Tools.

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change ppp0 mtu permanently ? zurih Linux - Networking 1 06-09-2006 01:48 PM
How to change Nice levels permanently Peppercorn Linux - Software 0 12-21-2005 04:31 AM
Can't permanently change path SuperRunt Linux - Newbie 11 02-03-2005 12:59 AM
can't change tcp_sack permanently kentri9 Linux - Networking 1 10-30-2004 06:20 PM
Permanently change the hostname juby Linux - Software 13 05-10-2003 01:34 PM


All times are GMT -5. The time now is 10:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration