AC_PREREQ(2.57)
AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
#AC_WITH_LTDL # not needed ?
-AM_INIT_AUTOMAKE(ltt-control,0.71-30092009)
+AM_INIT_AUTOMAKE(ltt-control,0.72-23102009)
AM_CONFIG_HEADER(config.h)
AM_PROG_LIBTOOL
AM_CFLAGS = -DPACKAGE_DATA_DIR=\""$(datadir)"\" -DPACKAGE_BIN_DIR=\""$(bindir)"\"
bin_PROGRAMS = lttctl
-bin_SCRIPTS = ltt-armall ltt-disarmall ltt-armalluser ltt-disarmalluser \
+bin_SCRIPTS = ltt-armall ltt-disarmall \
+ ltt-armnetsync ltt-disarmnetsync \
+ ltt-armalluser ltt-disarmalluser \
ltt-armtap ltt-disarmtap
CLEANFILES = $(bin_SCRIPTS)
EXTRA_DIST = ltt-armall.sh ltt-disarmall.sh \
+ ltt-armnetsync.sh ltt-disarmnetsync.sh \
ltt-armalluser.sh ltt-disarmalluser.sh \
ltt-armtap.sh ltt-disarmtap.sh
cat $(srcdir)/ltt-disarmall.sh >> ltt-disarmall
chmod ugo+x ltt-disarmall
+ltt-armnetsync: ltt-armnetsync.sh
+ rm -f ltt-armnetsync
+ echo "#!"$(BASH) > ltt-armnetsync
+ cat $(srcdir)/ltt-armnetsync.sh >> ltt-armnetsync
+ chmod ugo+x ltt-armnetsync
+
+ltt-disarmnetsync: ltt-disarmnetsync.sh
+ rm -f ltt-disarmnetsync
+ echo "#!"$(BASH) > ltt-disarmnetsync
+ cat $(srcdir)/ltt-disarmnetsync.sh >> ltt-disarmnetsync
+ chmod ugo+x ltt-disarmnetsync
+
ltt-armtap: ltt-armtap.sh
rm -f ltt-armtap
echo "#!"$(BASH) > ltt-armtap
--- /dev/null
+DEBUGFSROOT=$(grep ^debugfs /proc/mounts | head -1 | awk '{print $2}')
+MARKERSROOT=${DEBUGFSROOT}/ltt/markers
+
+echo Connecting network synchronization markers
+
+for m in ${MARKERSROOT}/net/*_extended; do
+ echo Connecting ${m}
+ echo 1 > ${m}/enable
+done
--- /dev/null
+DEBUGFSROOT=$(grep ^debugfs /proc/mounts | head -1 | awk '{print $2}')
+MARKERSROOT=${DEBUGFSROOT}/ltt/markers
+
+echo Disconnecting network synchronization markers
+
+for m in ${MARKERSROOT}/net/*_extended; do
+ echo Disconnecting ${m}
+ echo 0 > ${m}/enable
+done