diff options
Diffstat (limited to 'networking/ifupdown.c')
-rw-r--r-- | networking/ifupdown.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index e9f0a646c..5aa3fa5f1 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c | |||
@@ -10,7 +10,9 @@ | |||
10 | * Changes to upstream version | 10 | * Changes to upstream version |
11 | * Remove checks for kernel version, assume kernel version 2.2.0 or better. | 11 | * Remove checks for kernel version, assume kernel version 2.2.0 or better. |
12 | * Lines in the interfaces file cannot wrap. | 12 | * Lines in the interfaces file cannot wrap. |
13 | * To adhere to the FHS, the default state file is /var/run/ifstate. | 13 | * To adhere to the FHS, the default state file is /var/run/ifstate |
14 | * (defined via CONFIG_IFUPDOWN_IFSTATE_PATH) and can be overridden by build | ||
15 | * configuration. | ||
14 | * | 16 | * |
15 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. | 17 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
16 | */ | 18 | */ |
@@ -1105,7 +1107,7 @@ static llist_t *find_iface_state(llist_t *state_list, const char *iface) | |||
1105 | static llist_t *read_iface_state(void) | 1107 | static llist_t *read_iface_state(void) |
1106 | { | 1108 | { |
1107 | llist_t *state_list = NULL; | 1109 | llist_t *state_list = NULL; |
1108 | FILE *state_fp = fopen("/var/run/ifstate", "r"); | 1110 | FILE *state_fp = fopen(CONFIG_IFUPDOWN_IFSTATE_PATH, "r"); |
1109 | 1111 | ||
1110 | if (state_fp) { | 1112 | if (state_fp) { |
1111 | char *start, *end_ptr; | 1113 | char *start, *end_ptr; |
@@ -1275,7 +1277,7 @@ int ifupdown_main(int argc, char **argv) | |||
1275 | } | 1277 | } |
1276 | 1278 | ||
1277 | /* Actually write the new state */ | 1279 | /* Actually write the new state */ |
1278 | state_fp = xfopen("/var/run/ifstate", "w"); | 1280 | state_fp = xfopen(CONFIG_IFUPDOWN_IFSTATE_PATH, "w"); |
1279 | state = state_list; | 1281 | state = state_list; |
1280 | while (state) { | 1282 | while (state) { |
1281 | if (state->data) { | 1283 | if (state->data) { |