fix vsftpd compile error (#1409)
[openwrt/svn-archive/archive.git] / ipv6 / ptrtd / patches / 100-ptrtd-0.5.2-openwrt.patch
1 --- ptrtd-0.5.2/ptrtd.old 2007-02-22 16:10:57.896689015 +0100
2 +++ ptrtd-0.5.2/ptrtd.c 2007-02-22 16:11:39.194388792 +0100
3 @@ -201,13 +201,13 @@
4 if( do_config )
5 {
6 printf( "Tunnel: %s\n", ifname );
7 - sprintf( cmd, "/sbin/ip link set %s up", ifname );
8 + sprintf( cmd, "/usr/sbin/ip link set %s up", ifname );
9 printf( "command: %s\n", cmd );
10 system( cmd );
11 - sprintf( cmd, "/sbin/ip addr add fe80::1/64 dev %s", ifname );
12 + sprintf( cmd, "/usr/sbin/ip addr add fe80::1/64 dev %s", ifname );
13 printf( "command: %s\n", cmd );
14 system( cmd );
15 - sprintf( cmd, "/sbin/ip route add %s/%d dev %s via fe80::5",
16 + sprintf( cmd, "/usr/sbin/ip route add %s/%d dev %s via fe80::5",
17 prefix, plen, ifname );
18 printf( "command: %s\n", cmd );
19 system( cmd );
20 --- ptrtd-0.5.2/tap802ipd.old 2007-02-22 16:11:22.600920230 +0100
21 +++ ptrtd-0.5.2/tap802ipd.c 2007-02-22 16:11:51.040581581 +0100
22 @@ -125,16 +125,16 @@
23
24 tap_get_name( (struct iface *)tap_iface, ifname );
25 printf( "Tunnel: %s\n", ifname );
26 - sprintf( cmd, "/sbin/ip link set %s address %02x:%02x:%02x:%02x:%02x:%02x up\n", ifname,
27 + sprintf( cmd, "/usr/sbin/ip link set %s address %02x:%02x:%02x:%02x:%02x:%02x up\n", ifname,
28 ip_iface->hwaddr[0], ip_iface->hwaddr[1],
29 ip_iface->hwaddr[2], ip_iface->hwaddr[3],
30 ip_iface->hwaddr[4], ip_iface->hwaddr[5] );
31 printf( "command: %s\n", cmd );
32 system( cmd );
33 - //sprintf( cmd, "/sbin/ip addr add fe80::1/64 dev %s", ifname );
34 + //sprintf( cmd, "/usr/sbin/ip addr add fe80::1/64 dev %s", ifname );
35 //printf( "command: %s\n", cmd );
36 //system( cmd );
37 - //sprintf( cmd, "/sbin/ip route add %s/%d dev %s via fe80::5", prefix, plen, ifname );
38 + //sprintf( cmd, "/usr/sbin/ip route add %s/%d dev %s via fe80::5", prefix, plen, ifname );
39 //printf( "command: %s\n", cmd );
40 //system( cmd );
41 }