mrrl-system-config

system configuration on top of MRRL
git clone https://ccx.te2000.cz/git/mrrl-system-config
Log | Files | Refs

s6-rc-mount.aat (745B)


      1 @include common.aat
      2 @include rc-common.aat
      3 |### write_oneshot ###
      4 |function write_oneshot() {
      5 |oneshot(svc_name, dependencies())
      6 |if(down_umount()) {
      7 /{{svc_name}}/down	cN	{{qexec("s6-umount")}} {{qget()}}	m644
      8 |} else if (down_readonly()) {
      9 /{{svc_name}}/down	cN	{{qexec("mount")}} -o remount,ro {{qget()}}	m644
     10 |}
     11 /{{svc_name}}/up
     12 CN	# mount {{get("source")}} on {{mtp}}
     13 |if(boolean("mkdir")) {
     14 	{{qexec("if")}} { {{qexec("mkdir")}} -p {{qget()}} }
     15 |}
     16 	{{qexec("if")}} -n -t { {{qexec("mount")}} -t {{qget("type")}} -o {{qget("remount_options")}} {{qget("source")}} {{qget()}} }
     17 	{{qexec("mount")}} -t {{qget("type")}} -o {{qget("options")}} {{qget("source")}} {{qget()}}
     18 |}
     19 |### include main loop / parsing code ###
     20 @awk parse_fs.include.awk