November 24, 2024, 02:24:18 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: rc.loacl dont work  (Read 5302 times)

Offline omnia

  • Linux Noob !
  • *
  • Posts: 9
rc.loacl dont work
« on: January 06, 2005, 11:33:36 AM »
i want to ask if i copy rc.local using ssh and edit it with wordpad then overwrite it back in linux ,is this make it dont work??

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
rc.loacl dont work
« Reply #1 on: January 06, 2005, 02:40:19 PM »
What is that question.. well you can do so but save it as text then and then chmod to 755 ..

Well yes it will work :)

Offline omnia

  • Linux Noob !
  • *
  • Posts: 9
rc.loacl dont work
« Reply #2 on: January 06, 2005, 04:24:54 PM »
i already did that and it didnt work also  :(

me rc.local content is:
touch /var/lock/subsys/local
/etc/rc.d/rc.nat
insmod ip_wccp
insmod ip_gre
/etc/rc.d/init.d/kannel2
 
 
 
 
route  add -net  163.121.130.32 netmask 255.255.255.224 gw  163.121.130.6 dev eth0
route  add -net  163.121.130.64 netmask 255.255.255.224 gw  163.121.130.17 dev eth0
route  add -net  163.121.130.96 netmask 255.255.255.240 gw  163.121.130.17 dev eth0

is there any clue?