🌴 Sync 2026-03-05 23:51:42

This commit is contained in:
github-actions[bot] committed 2026-03-05 23:51:42 +08:00
1 parent 97c049ed0a
commit 0acff03804
14253 files changed
+3893239

No files matched your search

+60
View File
@@ -0,0 +1,60 @@
#
# Copyright (C) 2010-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=automount
PKG_FLAGS:=nonshared
PKG_RELEASE:=1
PKG_CONFIG_DEPENDS:= \
CONFIG_TARGET_ramips \
CONFIG_USB_SUPPORT
include $(INCLUDE_DIR)/package.mk
define Package/automount
TITLE:=Mount autoconfig hotplug script.
MAINTAINER:=Lean
DEPENDS:= \
+luci-app-partexp \
+block-mount \
+e2fsprogs \
+USB_SUPPORT:kmod-usb-storage \
+USB_SUPPORT:kmod-usb-storage-extras \
+(!TARGET_ramips&&USB_SUPPORT):kmod-usb-storage-uas \
+kmod-fs-ext4 \
+kmod-fs-exfat \
+kmod-fs-vfat \
+ntfs3-mount
PKGARCH:=all
endef
define Package/ntfs3-mount
SECTION:=utils
CATEGORY:=Utilities
SUBMENU:=Filesystem
TITLE:=NTFS mount script for Paragon NTFS3 driver
DEPENDS:=+kmod-fs-ntfs3
VARIANT:=ntfs3-mount
PKGARCH:=all
endef
define Build/Compile
endef
define Package/automount/install
$(INSTALL_DIR) $(1)/etc/uci-defaults
endef
define Package/ntfs3-mount/install
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) ./files/mount.ntfs $(1)/sbin
endef
$(eval $(call BuildPackage,automount))
$(eval $(call BuildPackage,ntfs3-mount))
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
if ! uci -q get system.@imm_init[0].anon_mount > "/dev/null"; then
uci -q batch <<-EOF
set fstab.@global[0].anon_mount="1"
commit fstab
set system.@imm_init[0].anon_mount="1"
commit system
EOF
fi
exit 0
+27
View File
@@ -0,0 +1,27 @@
#!/bin/sh
# Copyright (C) 2015 OpenWrt.org
# 0 yes blockdevice handles this - 1 no it is not there
blkdev=`dirname $DEVPATH`
basename=`basename $blkdev`
device=`basename $DEVPATH`
skip=`block info | grep -vE '(f2fs|kernel|squashfs|ubifs)' | sed 's/\(.*\): .*/\1/' | grep -q $device ; echo $?`
path=$DEVPATH
if [ $basename != "block" ] && [ -z "${device##sd*}" ] && [ $skip -eq 1 ]; then
mntpnt=$device
case "$ACTION" in
add)
mkdir -p /mnt/$mntpnt
chmod 777 /mnt/$mntpnt
# Try to be gentle on solid state devices
mount -o rw,noatime,discard /dev/$device /mnt/$mntpnt
;;
remove)
# Once the device is removed, the /dev entry disappear. We need mountpoint
mountpoint=`mount |grep /dev/$device | sed 's/.* on \(.*\) type.*/\1/'`
umount -l $mountpoint
;;
esac
fi
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
mount -t ntfs3 -o iocharset=utf8 "$@"