+ if(post_mount_command && !umount)
+ {
+ char workdir[256];
+ int len;
+ len = snprintf(workdir, sizeof(workdir), "/media/%s", device->label);
+ if(len<(int)sizeof(workdir))
+ {
+ if(verbosity>=1)
+ printf("Running %s in %s\n", post_mount_command, workdir);
+
+ pid = fork();
+ if(pid==0)
+ {
+ chdir(workdir);
+ execlp(post_mount_command, post_mount_command, NULL);
+ _exit(1);
+ }
+ }
+ }
+