Comments (2)
I found the solution - I just needed to include:
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
Working script is now:
#!/bin/sh /etc/rc.common
# Copyright (C) 2007 OpenWrt.org
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
exec &> /tmp/mount-onedrive.log
START=97
STOP=5
start() {
rclone --config /etc/rclone/rclone.conf mkdir /tmp/OneDrive
rclone --config /etc/rclone/rclone.conf mount "OneDrive:/Scanned Documents/" /tmp/OneDrive/ --vfs-cache-mode ful}
stop() {
fusermount -zu /tmp/OneDrive
}
I hope this is safe enough to run as an init.d script in OpenWrt.
from rclone-openwrt.
It is a nice feature that mount cloud storage into file system. Maybe I can integrate it into luci, and manipulate mounted storage on web page
from rclone-openwrt.
Related Issues (20)
- 已经在路由器中挂载,怎么通过局域网访问? HOT 1
- luci-app-rclone.postinst: /etc/init.d/rclone: not found HOT 1
- 无法在官方openwrt luci19.07后台启动. HOT 1
- 建议luci增加更多功能,比如挂载,同步等. HOT 2
- 系统升级后原来的/etc/rclone/rclone.conf丢失 HOT 2
- 建议rclone-webui-react和rclone-ng设置为可选项而非强制依赖, HOT 2
- Add SSL configuration for luci-app-rclone HOT 1
- XML Parsing Error: mismatched tag. Expected: </div>
- Add this to official package feed? HOT 6
- 能否添加arm5的二进制?斐讯k3只能使用arm5的二进制!!!! HOT 1
- Luci interface error HOT 1
- RCD not working properly
- 编译Error HOT 2
- 编译安装后运行起来后无法使用。 HOT 4
- 您好,ElonH,我对编译一窍不通,能不能简单说下怎么编译您的Rclone-Openwrt HOT 2
- Insufficient permissions to read UCI configuration HOT 3
- Unable to install HOT 1
- 大佬,有一个使用教程吗 HOT 1
- 在openwrt官方master分支中编译失败 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rclone-openwrt.