- Timestamp:
- Jun 13, 2010, 12:36:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/mindi/sbin/mindi
r2540 r2645 6 6 # $Id$ 7 7 # 8 # Copyright B. Cornec 2008 8 # Copyright B. Cornec 2008-2010 9 9 # Provided under the GPL v2 10 10 … … 53 53 =head1 OPTIONS 54 54 55 =cut 56 57 # Handle options 58 # 59 GetOptions( 60 55 61 =over 4 56 62 63 =cut 64 "verbose|v+" => \$opts{'v'}, 65 57 66 =item B<-v|--verbose> 58 67 59 68 Print a brief help message and exits. 60 69 70 =cut 71 "quiet|q" => \$opts{'q'}, 72 61 73 =item B<-q|--quiet> 62 74 63 75 Do not print any output. 64 76 77 =cut 78 "help|?|h" => \$opts{'h'}, 79 65 80 =item B<-h|--help> 66 81 67 82 Print a brief help message and exits. 68 83 84 =cut 85 "man" => \$opts{'man'}, 86 69 87 =item B<--man> 70 88 71 89 Prints the manual page and exits. 72 90 91 =cut 92 "iso|i=s" => \$opts{'i'}, 93 73 94 =item B<-i|--iso iso_image> 74 95 75 96 Name of the ISO image you want to created. 97 98 =cut 99 "usb|u=s" => \$opts{'u'}, 100 101 =item B<-u|--usb usb_device> 102 103 Name of the USB device on which you want to created your image. 104 105 =cut 106 "tape|t=s" => \$opts{'t'}, 107 108 =item B<-t|--tape tape_device> 109 110 Name of the Tape device on which you want to created your image. 111 112 =cut 113 "obdr|o" => \$opts{'o'}, 114 115 =item B<-o|--obdr> 116 117 Activate OBDR mode for tape (Bootable tape devices) 118 119 =cut 120 "version|V" => \$opts{'V'}, 121 122 =item B<-V|--version> 123 124 Display mindi version and exit 125 126 =cut 127 "force|f" => \$opts{'f'}, 128 129 =item B<-f|--force> 130 131 Force usage of defaults parameters or values without asking questions 132 133 =cut 134 "printvar|p=s" => \$opts{'p'}, 135 136 =item B<-p|--printvars variable> 137 138 Prints the value of the variable passed as parameter 139 140 =cut 141 "log-files|l=s" => \$opts{'l'}, 142 ) || pb_syntax(-1,0); 76 143 77 144 =back … … 94 161 # If not defined, mrcachedir is under /var/cache/mindi 95 162 mrcachedir mindi = /var/cache/mindi 163 164 Also look at man mindi.conf 96 165 97 166 =head1 AUTHORS … … 112 181 pb_syntax_init("mindi Version PBVER-rPBREV\n"); 113 182 pb_display_init("text",""); 114 115 # Handle options116 #117 GetOptions("help|?|h" => \$opts{'h'},118 "man" => \$opts{'man'},119 "verbose|v+" => \$opts{'v'},120 "quiet|q" => \$opts{'q'},121 "log-files|l=s" => \$opts{'l'},122 "force|f" => \$opts{'f'},123 "iso|i=s" => \$opts{'i'},124 "usb|u=s" => \$opts{'u'},125 "tape|t=s" => \$opts{'t'},126 "printvar|p=s" => \$opts{'p'},127 "obdr|o" => \$opts{'o'},128 "version|V" => \$opts{'V'},129 ) || pb_syntax(-1,0);130 183 131 184 # easy options … … 194 247 close(CONF); 195 248 249 # Adds conf files in order 196 250 pb_conf_add("$ENV{'HOME'}/.mondorescuerc","$MINDI_CONF/mondorescue.conf","$MINDI_CONF/mondorescue.conf.dist"); 197 251
Note:
See TracChangeset
for help on using the changeset viewer.