1 | /* libmondo-tools.h |
---|
2 | * $Id: libmondo-tools.h 1663 2007-09-27 10:21:18Z bruno $ |
---|
3 | */ |
---|
4 | |
---|
5 | #ifndef LIBMONDO_TOOLS_H |
---|
6 | # define LIBMONDO_TOOLS_H |
---|
7 | |
---|
8 | void clean_up_KDE_desktop_if_necessary(void); |
---|
9 | |
---|
10 | long get_time(void); |
---|
11 | int read_cfg_var(char *config_file, char *label, char *value); |
---|
12 | int write_cfg_var(char *config_file, char *label, char *value); |
---|
13 | void reset_bkpinfo(); |
---|
14 | #ifdef __FreeBSD__ |
---|
15 | void initialize_raidrec(struct vinum_volume *vv); |
---|
16 | #else |
---|
17 | void initialize_raidrec(struct raid_device_record *raidrec); |
---|
18 | #endif |
---|
19 | int some_basic_system_sanity_checks(void); |
---|
20 | |
---|
21 | |
---|
22 | void insmod_crucial_modules(void); |
---|
23 | int find_and_store_mondoarchives_home(char *home_sz); |
---|
24 | |
---|
25 | |
---|
26 | void unmount_supermounts_if_necessary(void); |
---|
27 | void remount_supermounts_if_necessary(void); |
---|
28 | |
---|
29 | int post_param_configuration(); |
---|
30 | |
---|
31 | |
---|
32 | int pre_param_configuration(); |
---|
33 | |
---|
34 | long free_space_on_given_partition(char *partition); |
---|
35 | |
---|
36 | |
---|
37 | |
---|
38 | void mount_boot_if_necessary(void); |
---|
39 | void unmount_boot_if_necessary(void); |
---|
40 | |
---|
41 | void restart_autofs_if_necessary(void); |
---|
42 | void malloc_libmondo_global_strings(void); |
---|
43 | void free_libmondo_global_strings(void); |
---|
44 | |
---|
45 | double get_kernel_version(void); |
---|
46 | char *get_architecture(void); |
---|
47 | bool does_nonMS_partition_exist(void); |
---|
48 | void stop_magicdev_if_necessary(void); |
---|
49 | void restart_magicdev_if_necessary(void); |
---|
50 | void stop_autofs_if_necessary(void); |
---|
51 | |
---|
52 | #endif /* LIBMONDO_TOOLS_H */ |
---|
53 | |
---|