- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
bool aiccu_os_install(void)
{
/* Check if IPv6 support is available */
if (access("/proc/net/if_inet6", F_OK))
{
/* Doing the modprobe doesn't guarantee success unfortunately */
(void)system("modprobe -q ipv6 2>/dev/null >/dev/null");
/* Thus test it again */
if (access("/proc/net/if_inet6", F_OK))
{
dolog(LOG_ERR, "No IPv6 Stack found! Please check your kernel and module configuration\n");
return false;
}
}
/* Try to load modules (SIT tunnel, TUN/TAP)
* They can be kernel builtins and there is no easy
* way to check if they are loaded/built except for
* trying to use them and fail at that point
*/
(void)system("modprobe -q sit 2>/dev/null >/dev/null");
(void)system("modprobe -q tun 2>/dev/null >/dev/null");
return true;
}
lucidfox 28.06.2011 13:21 # 0
RaZeR 28.06.2011 13:30 # −3
macGovno 28.06.2011 13:43 # +3
guest 23.03.2012 15:56 # 0
macGovno 28.06.2011 13:52 # 0
Но могу ошибаться, не пробовал использовать.
kipar 28.06.2011 16:13 # 0
macGovno 28.06.2011 17:19 # 0
eth0 28.06.2011 19:40 # 0
rat4 28.06.2011 20:38 # 0
eth0 28.06.2011 22:05 # 0
guest8 08.04.2019 21:01 # −999
guest8 09.04.2019 11:05 # −999