Skip to content

Commit

Permalink
debian: add hook to pass serial number via defaults
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Heimpold <[email protected]>
  • Loading branch information
mhei committed Jan 24, 2016
1 parent 30bf69a commit 201d343
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion debian/init.d
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ do_start()
|| return 1
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --background -- \
${HTTPSURL:+-s} ${FRIENDLYNAME:+-f "$FRIENDLYNAME"} ${UUID:+-u "$UUID"} \
$DAEMON_ARGS \
${SERIALNUMBER:+-S "$SERIALNUMBER"} $DAEMON_ARGS \
|| return 2
}

Expand Down
3 changes: 3 additions & 0 deletions debian/u2pnpd.default
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
# Define a custom friendlyName
#FRIEDLYNAME="mySmartDevice"

# Define a custom serial number
#SERIALNUMBER="4711"

# Uncomment the following line when a HTTPS URL should be
# announced for this device
#HTTPSURL=1
Expand Down

0 comments on commit 201d343

Please sign in to comment.